﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;


using H2.NET.Business;

namespace H2.NET.Web.Pages
{
    public partial class Marketing : TaskControl
    {
        #region 属性 Public
        public string FORM
        {
            get
            {
                return (Parent as TabMaterial).Status.FORM;
            }
        }

        public string Category
        {
            get
            {
                return (Parent as TabMaterial).Status.Category;
            }
        }

        public string Action
        {
            get
            {
                return (Parent as TabMaterial).Status.Marketing;
            }
        }

        private bool IsLoaded
        {
            get
            {
                return ViewState["IsLoaded"] == null ? false : (bool)ViewState["IsLoaded"];
            }
            set { ViewState["IsLoaded"] = value; }
        }

        private bool IsUsed
        {
            get
            {
                //return !(string.IsNullOrEmpty(FORM) || string.IsNullOrEmpty(Action)
                //    || (FORM != "FORM-001" && FORM != "FORM-002" && FORM != "FORM-005" && FORM != "FORM-010" && FORM != "FORM-012" && FORM != "FORM-062" && FORM != "FORM-064" && FORM != "FORM-035" && FORM != "FORM-074" && FORM != "FORM-043" && FORM != "FORM-031"));
                return !string.IsNullOrEmpty(Action);
            }
        }
        #endregion

        #region 事件 页面加载
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Visible = IsUsed;
        }
        #endregion

        #region 事件 MKT_IsSale
        protected void MKT_IsSale_SelectedIndexChanged(object sender, EventArgs e)
        {
            //if (MKT_IsSale.SelectedValue == "")
            //{
            //    MKT_Easy_Order_Entry_Code.Text = "";
            //}
            //else
            //{
            //    if (MKT_IsSale.SelectedValue == "A" || MKT_IsSale.SelectedValue == "B")
            //    {
            //        MKT_Easy_Order_Entry_Code.Text = MKT_SKU_BPCS_Code.Text;
            //    }
            //    else
            //    {
            //        MKT_Easy_Order_Entry_Code.Text = "B " + MKT_SKU_BPCS_Code.Text;
            //    }
            //}
        }
        #endregion

        #region 事件 MKT_Description 中英文描述
        protected void MKT_Description_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (((DropDownList)sender).ID == "MKT_Description_EN_3")
            {
                MKT_Description_ZH_3.SelectedIndex = MKT_Description_EN_3.SelectedIndex;
            }
            else
            {
                MKT_Description_EN_3.SelectedIndex = MKT_Description_ZH_3.SelectedIndex;
            }

            MKT_Description_EN_4.Text = "";
            MKT_Description_ZH_4.Text = "";
            SetForeColor(Color.Black, MKT_Description_EN_L_4);
            SetForeColor(Color.Blue, MKT_Description_EN_L_3);

        }

        protected void MKT_Description2_TextChanged(object sender, EventArgs e)
        {
            MKT_Description_ZH_3.SelectedValue = "";
            MKT_Description_EN_3.SelectedValue = "";
            SetForeColor(Color.Black, MKT_Description_EN_L_3);
            SetForeColor(Color.Blue, MKT_Description_EN_L_4);
            if (MKT_Description_EN_4.Text.Length > 12) MKT_Description_EN_4.Text = MKT_Description_EN_4.Text.Substring(0, 12);
            if (MKT_Description_ZH_4.Text.Length > 12) MKT_Description_ZH_4.Text = MKT_Description_ZH_4.Text.Substring(0, 12);
        }
        #endregion

        #region 方法 InitControls(初始化)
        public void InitControls(mdc_Material mt)
        {
            //如果当前 Tabs 是隐藏的情况，退出
            Visible = IsUsed;
            if (!IsUsed)
            {
                return;
            }

            InitShowHide();
            InitShowStatus();
            //if (!IsLoaded)
            //{
            InitDropDownList();
            //}

            Distribute(mt);
            if (TaskAPI.Process == "TW FINI Code Application" || TaskAPI.Process == "TW NPL Application-PKG" || TaskAPI.Process == "TW NPL Application-DECO" || TaskAPI.Process == "TW Trade Code Application-DECO")
            {
                MKT_Product_Cluster.Dialog_ID = "TW-008";
            }
            if (TaskAPI.Process == "TW FINI Code Application" || TaskAPI.Process == "TW MTO Application-DECO" || TaskAPI.Process == "TW NPL Application-DECO" || TaskAPI.Process == "TW Trade Code Application-DECO")
            {
                MKT_Product_Hierarchy.Dialog_ID = "TW-009";
                MKT_Product_Group.Dialog_ID = "TW-002";
            }
            if (TaskAPI.Process == "TW FINI Code Application" || TaskAPI.Process == "TW MTO Application-PKG" || TaskAPI.Process == "TW NPL Application-PKG")
            {
                MKT_Product_Hierarchy.Dialog_ID = "TW-001";
                MKT_Product_Group.Dialog_ID = "TW-0010";
            }
            if (TaskAPI.Process.Contains("TW"))
            {
                MKT_Marterial_Group.Dialog_ID = "TW-0011";
            }
            if (TaskAPI.Process == "TW New Raw Material Creation" || FORM == "FORM-TW-004")
            {
                MKT_Marterial_Group.Dialog_ID = "TW-0012";
            }
            if (TaskAPI.Process == "TW Trade Code Application-PKG")
            {
                MKT_Marterial_Group.Dialog_ID = "TW-0013";
                MKT_Product_Hierarchy.Dialog_ID = "TW-001";
                MKT_Product_Group.Dialog_ID = "TW-0010";
            }
            if (TaskAPI.Process == "TW Raw Code Application")
            {
                MKT_Product_Hierarchy.Dialog_ID = "TW-009";
                MKT_Marterial_Group.Dialog_ID = "TW-0014";
            }
            SetForeColor(Color.Black, MKT_Denominator_1_L, MKT_Numerator_1_L, MKT_Denominator_2_L, MKT_Numerator_2_L, MKT_MTO_OR_NPL_L, MKT_SKU_BPCS_Code_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Volume_Rebate_Group_L, MKT_Material_Group_4_L
                                                       , MKT_Product_Hierarchy_L, MKT_Profit_Center_L, MKT_Product_Line_Code_L, MKT_Product_Group_L, MKT_Description_EN_L, MKT_Description_ZF_L, MKT_Length_L, MKT_Width_L, MKT_Height_L
                                                       , MKT_IsSale_L, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Description_EN_L, MKT_EAN_Category_L
                                                       , MKT_Description_ZH_L, MKT_Lab_Office_L, MKT_Easy_Order_Entry_Code_L, MKT_Marterial_Group_L
                                                       , MKT_GenItemCatGroup_L, MKT_X_Plant_Matl_L, MKT_Description_EN_L_0, MKT_Description_EN_L_1, MKT_Description_EN_L_2
                                                       , MKT_Description_EN_L_3, MKT_Description_EN_L_4, MKT_Description_EN_0, MKT_Description_ZH_0
                                                       , MKT_Size_dimension_L, MKT_FINI_Code_L, MKT_Description_ZF_L, MKT_Type_Select_L, MKT_Is_Generic_L
                                                       , MKT_Min_dely_qty_L, MKT_Min_order_qty_L, MKT_Delivery_unit_L, MKT_Delivering_plant_L, MKT_Order_unit_L
                                                       , MKT_Plant_L, MKT_Gross_Weight_L, MKT_Height_L, MKT_Width_L, MKT_Length_L, MKT_Unit_of_Dimension_L, MKT_Color_Code_L
                                                       , MKT_Pack_Size_L, MKT_Material_Attributes_1_L, MKT_Material_Attributes_2_L, MKT_Material_Attributes_3_L
                                                       , MKT_Delivering_Plant_1_L, MKT_Item_Category_Group_1_L, MKT_Departure_country_L, MKT_Tax_category_L, MKT_Tax_classification_L, MKT_Acct_Assignment_Grp_L, MKT_Cash_Discount_L, MKT_Easy_Order_Entry_L
                                                       , MKT_Issdate_L, MKT_Exemption_L, MKT_Gross_Weight_L, MKT_Unit_Of_Measure_Y_L, MKT_Unit_Of_Measure_AUN_L, MKT_Unit_Of_Measure_L, MKT_Minimun_order_quantity_L, MKT_Minimun_delivery_quantity_L, MKT_Volume_L, MKT_Unit_Of_Measure_X_L, MKT_Unit_Of_Measure_Y_L, MKT_EAN_UPC_L, MKT_Product_Cluster_L, MKT_Item_category_group_L, MKT_Dchain_spec_status_L, MKT_Date_From_L, MKT_Net_Weight_L);

            if (TaskAPI.IsAllowSubmit)
            {
                switch (Action)
                {
                    case "C":
                        SetEnable(true, MKT_MTO_OR_NPL, MKT_SKU_BPCS_Code, MKT_Sales_Org, MKT_Distr_Channel, MKT_Volume_Rebate_Group, MKT_Material_Group_4, MKT_Net_Weight, MKT_Volume,
                                        MKT_Product_Hierarchy, MKT_Profit_Center, MKT_Product_Line_Code, MKT_Product_Group, MKT_IsSale, MKT_Base_Unit_Of_Measure,
                                        MKT_Division, MKT_Description_EN, MKT_Description_ZH, MKT_Lab_Office, MKT_Easy_Order_Entry_Code, MKT_Marterial_Group,
                                        MKT_GenItemCatGroup, MKT_X_Plant_Matl, MKT_Description_EN_1, MKT_Description_EN_2, MKT_Description_EN_3, MKT_Description_EN_4, MKT_Description_ZH_1,
                                        MKT_Description_ZH_2, MKT_Description_ZH_3, MKT_Description_ZH_4, MKT_FINI_Code, MKT_Size_dimension, MKT_FINI_Code,
                                        MKT_Description_ZF, MKT_Type_Select, MKT_Is_Generic, MKT_Min_dely_qty, MKT_Min_order_qty, MKT_Delivery_unit, MKT_Delivering_plant,
                                        MKT_Order_unit, MKT_Plant, MKT_Gross_Weight, MKT_Height, MKT_Width, MKT_Length, MKT_Unit_of_Dimension, MKT_Material_Attributes_1, MKT_Material_Attributes_2, MKT_Material_Attributes_3
                                        , MKT_Dchain_spec_status, MKT_Calendar1, MKT_Item_category_group, MKT_Color_Code, MKT_Pack_Size, MKT_Product_Cluster, MKT_Item_category_group, MKT_Dchain_spec_status
                                        , MKT_Unit_Of_Measure_X, MKT_Unit_Of_Measure_AUN, MKT_Unit_Of_Measure_Y, MKT_Unit_Of_Measure_Bun, MKT_Unit_Of_Measure_X_1, MKT_Unit_Of_Measure_AUN_1
                                        , MKT_Calendar1, MKT_Unit_Of_Measure_Y_1, MKT_Unit_Of_Measure_Bun_1, MKT_Unit_Of_Measure_X_2, MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_Y_2, MKT_Unit_Of_Measure_Bun_2
                                        , MKT_Issdate, MKT_Exemption, MKT_Minimun_delivery_quantity, MKT_Minimun_order_quantity, MKT_Delivering_Plant_1, MKT_Item_Category_Group_1, MKT_Departure_country, MKT_Tax_category, MKT_Tax_classification, MKT_Acct_Assignment_Grp, MKT_Cash_Discount, MKT_Easy_Order_Entry
                                        , MKT_A_Coat, MKT_Type, MKT_Product_Line_Code1);

                        SetForeColor(Color.Blue, MKT_MTO_OR_NPL, MKT_Volume_Rebate_Group_L, MKT_Material_Group_4_L, MKT_Size_dimension_L, MKT_FINI_Code_L,
                                                 MKT_Profit_Center_L, MKT_Product_Line_Code_L, MKT_Product_Group_L, MKT_Description_EN_L, MKT_Description_ZH_L,
                                                 MKT_Lab_Office_L, MKT_Profit_Center_L, MKT_Description_ZF_L, MKT_Type_Select_L, MKT_Is_Generic_L, MKT_Min_dely_qty_L,
                                                 MKT_Min_order_qty_L, MKT_Delivery_unit_L, MKT_Delivering_plant_L, MKT_Order_unit_L, MKT_Plant_L, MKT_Gross_Weight_L,
                                                 MKT_Height_L, MKT_Width_L, MKT_Length_L, MKT_Unit_of_Dimension_L, MKT_Color_Code_L, MKT_Pack_Size_L,
                                                 MKT_Material_Attributes_1_L, MKT_Item_category_group_L, MKT_Type_L, MKT_A_Coat_L, MKT_Product_Line_Code_L1);

                        if (Category == "FINI")
                        {
                            SetForeColor(Color.Blue, MKT_SKU_BPCS_Code_L, MKT_Distr_Channel_L, MKT_IsSale_L, MKT_Sales_Org_L);
                            if (FORM == "FORM-077")
                            {
                                SetForeColor(Color.Blue, MKT_Product_Hierarchy_L);
                            }
                            if (FORM == "FORM-012" || FORM == "FORM-074")
                            {
                                SetForeColor(Color.Blue, MKT_SKU_BPCS_Code_L, MKT_Distr_Channel_L, MKT_IsSale_L, MKT_Sales_Org_L, MKT_FINI_Code_L, MKT_Size_dimension_L, MKT_Is_Generic_L, MKT_Type_Select_L);
                            }

                            if (FORM == "FORM-064")
                            {
                                SetForeColor(Color.Black, MKT_Product_Line_Code_L, MKT_Material_Group_4_L, MKT_Product_Hierarchy_L);
                            }

                            if (FORM == "FORM-031-1" || FORM == "FORM-031-2")
                            {
                                SetForeColor(Color.Blue, MKT_FINI_Code_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Volume_Rebate_Group_L, MKT_Profit_Center_L, MKT_Product_Line_Code_L, MKT_Description_EN_L, MKT_Description_ZH_L, MKT_Lab_Office_L, MKT_Size_dimension_L, MKT_Product_Group_L);
                                SetForeColor(Color.Black, MKT_Material_Group_4_L);
                            }

                            if (FORM == "FORM-065-1")
                            {
                                SetForeColor(Color.Black, MKT_Delivery_unit_L, MKT_Order_unit_L, MKT_Min_order_qty_L);
                            }

                            if (FORM == "FORM-014")
                            {
                                SetForeColor(Color.Blue, MKT_SKU_BPCS_Code_L, MKT_Marterial_Group_L, MKT_Description_EN_L, MKT_Description_ZH_L, MKT_Base_Unit_Of_Measure_L, MKT_Min_dely_qty_L, MKT_Min_order_qty_L, MKT_Easy_Order_Entry_Code_L);
                                SetForeColor(Color.Black, MKT_Order_unit_L, MKT_Delivering_plant_L);
                            }

                            if (FORM == "FORM-067")
                            {
                                SetForeColor(Color.Blue, MKT_FINI_Code_L, MKT_Description_EN_L, MKT_Description_ZH_L, MKT_Description_ZF_L, MKT_Size_dimension_L, MKT_Product_Line_Code_L, MKT_Material_Group_4_L, MKT_Volume_Rebate_Group_L, MKT_Product_Group_L, MKT_Product_Hierarchy_L, MKT_Profit_Center_L, MKT_Lab_Office_L, MKT_Easy_Order_Entry_Code_L);
                            }
                            if (FORM == "FORM-015")
                            {
                                SetForeColor(Color.Blue, this.MKT_SKU_BPCS_Code_L, MKT_Description_EN_L, MKT_Description_ZH_L, MKT_Lab_Office_L);
                                SetForeColor(Color.Orange, MKT_Base_Unit_Of_Measure_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Division_L, MKT_Volume_Rebate_Group_L, MKT_Marterial_Group_L, MKT_Profit_Center_L, MKT_Size_dimension_L);
                                SetForeColor(Color.Black, MKT_Product_Group_L);
                            }
                            if (FORM == "FORM-062")
                            {
                                SetForeColor(Color.Blue, MKT_Is_Generic_L, MKT_FINI_Code_L, MKT_Description_EN_L, MKT_Description_ZF_L
                                                       , MKT_Description_ZH_L, MKT_Size_dimension_L, MKT_Product_Line_Code_L, MKT_Material_Group_4_L
                                                       , MKT_Volume_Rebate_Group_L, MKT_Product_Group_L, MKT_Product_Hierarchy_L, MKT_Profit_Center_L
                                                       , MKT_Lab_Office_L);
                            }
                            if (FORM == "FORM-T001")
                            {
                                SetForeColor(Color.Blue, MKT_SKU_BPCS_Code_L, MKT_Description_EN_L, MKT_Description_ZF_L, MKT_Profit_Center_L);
                            }
                            if (FORM == "FORM-T009")
                            {
                                SetForeColor(Color.Blue, MKT_Net_Weight_L, MKT_Volume_L, MKT_Product_Hierarchy_L, MKT_Product_Cluster_L);
                                //if (!string.IsNullOrEmpty(MKT_EAN_UPC.Text))
                                //{
                                //    SetForeColor(Color.Orange, MKT_EAN_Category_L);
                                //}
                                //else
                                //{
                                //    SetForeColor(Color.Black, MKT_EAN_Category_L);
                                //}
                            }
                            if (FORM == "FORM-T012")
                            {
                                SetForeColor(Color.Blue, MKT_Acct_Assignment_Grp_L, MKT_Net_Weight_L, MKT_Volume_L, MKT_Product_Hierarchy_L);
                                SetForeColor(Color.Black, MKT_Height_L, MKT_Width_L, MKT_Length_L, MKT_Unit_of_Dimension_L, MKT_Unit_Of_Measure_Bun_L);
                                //if (!string.IsNullOrEmpty(MKT_EAN_UPC.Text))
                                //{
                                //    SetForeColor(Color.Orange, MKT_EAN_Category_L);
                                //}
                                //else
                                //{
                                //    SetForeColor(Color.Black, MKT_EAN_Category_L);
                                //}
                            }
                            if (FORM == "FORM-TW-010")
                            {
                                SetForeColor(Color.Blue, MKT_Unit_Of_Measure_X_L, MKT_Unit_Of_Measure_Y_L, MKT_Distr_Channel_L, MKT_Net_Weight_L, MKT_Volume_L, MKT_Gross_Weight_L, MKT_Attributes1_L, MKT_Attributes2_L);
                            }
                            if (FORM == "FORM-T006")
                            {
                                SetForeColor(Color.Blue, MKT_SKU_BPCS_Code_L, MKT_Color_Code_L, MKT_Pack_Size_L, MKT_Item_category_group_L
                                                       , MKT_Item_category_group_L, MKT_Description_EN_L, MKT_Description_ZF_L, MKT_Material_Group_4_L
                                                       , MKT_Product_Hierarchy_L, MKT_Gross_Weight_L, MKT_Net_Weight_L, MKT_Product_Cluster_L);
                                SetForeColor(Color.Black, MKT_Min_dely_qty_L, MKT_Min_order_qty_L, MKT_Dchain_spec_status_L, MKT_Date_From_L, MKT_Material_Attributes_1_L, MKT_Material_Attributes_2_L, MKT_Material_Attributes_3_L);
                            }
                            if (FORM == "FORM-T010")
                            {
                                SetForeColor(Color.Blue, MKT_FINI_Code_L, MKT_Distr_Channel_L, MKT_Description_EN_L, MKT_Description_ZF_L, MKT_Lab_Office_L, MKT_Gross_Weight_L, MKT_Net_Weight_L, MKT_Volume_L
                                                       , MKT_Product_Group_L, MKT_Material_Group_4_L, MKT_Profit_Center_L, MKT_Unit_Of_Measure_X_L, MKT_Unit_Of_Measure_Y_L, MKT_Distr_Channel_L, MKT_Unit_Of_Measure_L);
                            }
                            if (FORM == "FORM-TW-007")
                            {
                                SetForeColor(Color.Blue, MKT_Product_Cluster_L, MKT_Net_Weight_L, MKT_Volume_L, MKT_Gross_Weight_L, MKT_Product_Hierarchy_L);
                            }
                            if (FORM == "FORM-T018")
                            {
                                SetForeColor(Color.Blue, MKT_A_Coat_L, MKT_Type_L, MKT_Distr_Channel_L, MKT_Easy_Order_Entry_Code_L);
                            }
                            if (FORM == "FORM-T002")
                            {
                                SetForeColor(Color.Blue, MKT_SKU_BPCS_Code_L, MKT_Description_EN_L, MKT_Description_ZH_L);
                                SetForeColor(Color.Black, MKT_Material_Group_4_L, MKT_Length_L, MKT_Width_L, MKT_Height_L, MKT_Product_Group_L);
                            }
                        }

                        if (Category == "PACK")
                        {
                            SetForeColor(Color.Blue, MKT_Marterial_Group_L, MKT_Description_EN_L_0, MKT_Description_EN_L_1, MKT_Description_EN_L_2, MKT_Description_EN_L_3, MKT_Description_EN_0, MKT_Description_ZH_0, MKT_Issdate_L, MKT_Exemption_L);
                            if (FORM == "FORM-043")
                            {
                                SetForeColor(Color.Blue, MKT_Description_EN_L, MKT_Description_ZH_L, MKT_Marterial_Group_L, MKT_Lab_Office_L);
                            }
                            //if (FORM == "FORM-002" && TaskAPI.Process == "Pack Code Application")
                            //{

                            //}
                        }
                        SetDefaultValue();
                        break;
                    case "S":
                        SetEnable(false, MKT_MTO_OR_NPL, MKT_SKU_BPCS_Code, MKT_Sales_Org, MKT_Distr_Channel, MKT_Volume_Rebate_Group, MKT_Material_Group_4, MKT_Product_Hierarchy
                                       , MKT_Profit_Center, MKT_Product_Line_Code, MKT_Product_Group, MKT_IsSale, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Description_EN, MKT_Description_ZF, MKT_Length, MKT_Width, MKT_Height
                                       , MKT_Description_EN, MKT_Description_ZH, MKT_Lab_Office, MKT_Easy_Order_Entry_Code, MKT_Marterial_Group, MKT_EAN_Category
                                       , MKT_GenItemCatGroup, MKT_X_Plant_Matl, MKT_Description_EN_1, MKT_Description_EN_2, MKT_Description_EN_3, MKT_Description_EN_4
                                       , MKT_Description_ZH_1, MKT_Description_ZH_2, MKT_Description_ZH_3, MKT_Description_ZH_4, MKT_Size_dimension
                                       , MKT_FINI_Code, MKT_Description_ZF, MKT_Type_Select, MKT_Is_Generic, MKT_Min_dely_qty, MKT_Min_order_qty
                                       , MKT_Delivery_unit, MKT_Delivering_plant, MKT_Order_unit, MKT_Plant, MKT_Gross_Weight, MKT_Volume, MKT_Net_Weight
                                       , MKT_Height, MKT_Width, MKT_Length, MKT_Unit_of_Dimension, MKT_Color_Code, MKT_Pack_Size, MKT_Material_Attributes_1
                                       , MKT_Material_Attributes_2, MKT_Material_Attributes_3, MKT_EAN_UPC, MKT_Product_Cluster, MKT_Item_category_group, MKT_Dchain_spec_status
                                       , MKT_Unit_Of_Measure_X, MKT_Unit_Of_Measure_AUN, MKT_Unit_Of_Measure_Y, MKT_Unit_Of_Measure_Bun, MKT_Unit_Of_Measure_X_1, MKT_Unit_Of_Measure_AUN_1
                                       , MKT_Calendar1, MKT_Unit_Of_Measure_Y_1, MKT_Unit_Of_Measure_Bun_1, MKT_Unit_Of_Measure_X_2, MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_Y_2, MKT_Unit_Of_Measure_Bun_2
                                       , MKT_Issdate, MKT_Exemption, MKT_Minimun_delivery_quantity, MKT_Minimun_order_quantity, MKT_Delivering_Plant_1, MKT_Item_Category_Group_1, MKT_Departure_country, MKT_Tax_category, MKT_Tax_classification, MKT_Acct_Assignment_Grp, MKT_Cash_Discount, MKT_Easy_Order_Entry
                                       , MKT_A_Coat, MKT_Type, MKT_Product_Line_Code1);

                        SetDefaultValue();
                        SetForeColor(Color.Black, MKT_Denominator_1_L, MKT_Numerator_1_L, MKT_Denominator_2_L, MKT_Numerator_2_L, MKT_MTO_OR_NPL_L, MKT_SKU_BPCS_Code_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Volume_Rebate_Group_L, MKT_Material_Group_4_L
                                     , MKT_Product_Hierarchy_L, MKT_Profit_Center_L, MKT_Product_Line_Code_L, MKT_Product_Group_L, MKT_Description_EN_L, MKT_Description_ZF_L, MKT_Length_L, MKT_Width_L, MKT_Height_L
                                     , MKT_IsSale_L, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Description_EN_L, MKT_EAN_Category_L
                                     , MKT_Description_ZH_L, MKT_Lab_Office_L, MKT_Easy_Order_Entry_Code_L, MKT_Marterial_Group_L
                                     , MKT_GenItemCatGroup_L, MKT_X_Plant_Matl_L, MKT_Description_EN_L_0, MKT_Description_EN_L_1, MKT_Description_EN_L_2
                                     , MKT_Description_EN_L_3, MKT_Description_EN_L_4, MKT_Description_EN_0, MKT_Description_ZH_0
                                     , MKT_Size_dimension_L, MKT_FINI_Code_L, MKT_Description_ZF_L, MKT_Type_Select_L, MKT_Is_Generic_L
                                     , MKT_Min_dely_qty_L, MKT_Min_order_qty_L, MKT_Delivery_unit_L, MKT_Delivering_plant_L, MKT_Order_unit_L
                                     , MKT_Plant_L, MKT_Gross_Weight_L, MKT_Height_L, MKT_Width_L, MKT_Length_L, MKT_Unit_of_Dimension_L, MKT_Color_Code_L
                                     , MKT_Pack_Size_L, MKT_Material_Attributes_1_L, MKT_Material_Attributes_2_L, MKT_Material_Attributes_3_L
                                     , MKT_Delivering_Plant_1_L, MKT_Item_Category_Group_1_L, MKT_Departure_country_L, MKT_Tax_category_L, MKT_Tax_classification_L, MKT_Acct_Assignment_Grp_L, MKT_Cash_Discount_L, MKT_Easy_Order_Entry_L
                                     , MKT_Unit_Of_Measure_Y_L, MKT_Unit_Of_Measure_AUN_L, MKT_Unit_Of_Measure_L, MKT_Minimun_order_quantity_L, MKT_Minimun_delivery_quantity_L, MKT_Volume_L, MKT_Unit_Of_Measure_X_L, MKT_Unit_Of_Measure_Y_L, MKT_EAN_UPC_L, MKT_Product_Cluster_L, MKT_Item_category_group_L, MKT_Dchain_spec_status_L, MKT_Date_From_L, MKT_Net_Weight_L
                                     , MKT_Type_L, MKT_A_Coat_L, MKT_Product_Line_Code_L1);

                        break;
                    case "E":
                        SetEnable(true, MKT_MTO_OR_NPL, MKT_SKU_BPCS_Code, MKT_Sales_Org, MKT_Distr_Channel, MKT_Volume_Rebate_Group, MKT_Material_Group_4, MKT_Product_Hierarchy
                                    , MKT_Profit_Center, MKT_Product_Line_Code, MKT_Product_Group, MKT_IsSale, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Description_EN, MKT_Description_ZF, MKT_Length, MKT_Width, MKT_Height
                                    , MKT_Description_EN, MKT_Description_ZH, MKT_Lab_Office, MKT_Easy_Order_Entry_Code, MKT_Marterial_Group, MKT_GenItemCatGroup, MKT_X_Plant_Matl_L, MKT_EAN_Category
                                    , MKT_Description_EN_1, MKT_Description_EN_2, MKT_Description_EN_3, MKT_Description_EN_4, MKT_Description_ZH_1, MKT_Description_ZH_2
                                    , MKT_Description_ZH_3, MKT_Description_ZH_4, MKT_FINI_Code, MKT_Size_dimension, MKT_Description_ZF, MKT_Is_Generic, MKT_Type_Select, MKT_Volume, MKT_Net_Weight
                                    , MKT_Min_dely_qty, MKT_Min_order_qty, MKT_Delivery_unit, MKT_Delivering_plant, MKT_Order_unit, MKT_Plant, MKT_Gross_Weight, MKT_Height, MKT_Width, MKT_Length, MKT_Unit_of_Dimension
                                    , MKT_Color_Code, MKT_Pack_Size, MKT_Material_Attributes_1, MKT_Material_Attributes_2, MKT_Material_Attributes_3, MKT_Item_category_group, MKT_Dchain_spec_status
                                    , MKT_Unit_Of_Measure_X, MKT_Unit_Of_Measure_AUN, MKT_Unit_Of_Measure_Y, MKT_Unit_Of_Measure_Bun, MKT_Unit_Of_Measure_X_1, MKT_Unit_Of_Measure_AUN_1
                                    , MKT_Calendar1, MKT_Unit_Of_Measure_Y_1, MKT_Unit_Of_Measure_Bun_1, MKT_Unit_Of_Measure_X_2, MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_Y_2, MKT_Unit_Of_Measure_Bun_2
                                    , MKT_Issdate, MKT_Exemption, MKT_Minimun_delivery_quantity, MKT_Minimun_order_quantity, MKT_Delivering_Plant_1, MKT_Item_Category_Group_1, MKT_Departure_country, MKT_Tax_category, MKT_Tax_classification, MKT_Acct_Assignment_Grp, MKT_Cash_Discount, MKT_Easy_Order_Entry
                                    , MKT_A_Coat, MKT_Type);

                        SetForeColor(Color.Black, MKT_Denominator_1_L, MKT_Numerator_1_L, MKT_Denominator_2_L, MKT_Numerator_2_L, MKT_MTO_OR_NPL_L, MKT_SKU_BPCS_Code_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Volume_Rebate_Group_L, MKT_Material_Group_4_L, MKT_Product_Hierarchy_L
                                    , MKT_Profit_Center_L, MKT_Product_Line_Code_L, MKT_Product_Group_L, MKT_IsSale_L, MKT_Base_Unit_Of_Measure_L, MKT_Description_EN_L, MKT_Description_ZF_L
                                    , MKT_Division_L, MKT_Description_EN_L, MKT_Description_ZH_L, MKT_Lab_Office_L, MKT_Easy_Order_Entry_Code_L, MKT_EAN_Category_L
                                    , MKT_Marterial_Group_L, MKT_GenItemCatGroup_L, MKT_X_Plant_Matl_L, MKT_Description_EN_L_0, MKT_Description_EN_L_1
                                    , MKT_Description_EN_L_2, MKT_Description_EN_L_3, MKT_Description_EN_L_4, MKT_Description_EN_0
                                    , MKT_Description_ZH_0, MKT_Size_dimension_L, MKT_FINI_Code_L, MKT_Description_ZF_L, MKT_Is_Generic_L
                                    , MKT_Type_Select_L, MKT_Min_dely_qty_L, MKT_Min_order_qty_L, MKT_Delivery_unit_L, MKT_Delivering_plant_L
                                    , MKT_Order_unit_L, MKT_Plant_L, MKT_Gross_Weight_L, MKT_Height_L, MKT_Width_L, MKT_Length_L, MKT_Unit_of_Dimension_L
                                    , MKT_Color_Code_L, MKT_Pack_Size_L, MKT_Material_Attributes_1_L, MKT_Material_Attributes_2_L, MKT_Material_Attributes_3_L, MKT_Net_Weight_L, MKT_Length_L, MKT_Width_L, MKT_Height_L
                                    , MKT_Minimun_order_quantity_L, MKT_Minimun_delivery_quantity_L, MKT_Volume_L, MKT_Unit_Of_Measure_X_L, MKT_Unit_Of_Measure_Y_L, MKT_EAN_UPC_L, MKT_Product_Cluster_L, MKT_Item_category_group_L, MKT_Dchain_spec_status_L, MKT_Date_From_L
                                    , MKT_Type_L, MKT_A_Coat_L);
                        //if (TaskAPI.Process == "HK-MTO Base Code Application" && TaskAPI.Step == "HK Marketing" && FORM == "FORM-067")
                        //{
                        //    SetForeColor(Color.Blue, MKT_Description_ZF_L);
                        //}
                        //if (TaskAPI.Process == "TW ADVE Code Application" && TaskAPI.Step == "Fill in the request" && (Page as PMDC).Actions.SelectedValue == "Extend")
                        //{
                        //    SetForeColor(Color.Blue, MKT_Profit_Center_L);
                        //}
                        SetDefaultValue();
                        break;
                }
            }
            else
            {
                SetEnable(false, MKT_Product_Line_Code1, MKT_Exemption, MKT_Issdate, MKT_Gross_Weight, MKT_Volume, MKT_Net_Weight, MKT_Delivering_Plant_1, MKT_Item_Category_Group_1, MKT_Departure_country, MKT_Tax_category, MKT_Tax_classification, MKT_Acct_Assignment_Grp, MKT_Cash_Discount, MKT_Easy_Order_Entry, MKT_Unit_Of_Measure_X, MKT_Unit_Of_Measure_AUN, MKT_Unit_Of_Measure_Y, MKT_Unit_Of_Measure_Bun, MKT_Unit_Of_Measure_X_1, MKT_Unit_Of_Measure_AUN_1, MKT_Unit_Of_Measure_Y_1, MKT_Unit_Of_Measure_Bun_1, MKT_Unit_Of_Measure_X_2, MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_Y_2, MKT_Unit_Of_Measure_Bun_2, MKT_SKU_BPCS_Code, MKT_Sales_Org, MKT_Distr_Channel, MKT_Volume_Rebate_Group, MKT_Material_Group_4, MKT_Product_Hierarchy, MKT_Profit_Center, MKT_Product_Line_Code, MKT_Product_Group, MKT_IsSale, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Description_EN, MKT_Description_ZH, MKT_Lab_Office, MKT_Easy_Order_Entry_Code, MKT_Marterial_Group, MKT_GenItemCatGroup, MKT_X_Plant_Matl, MKT_Description_EN_1, MKT_Description_EN_2, MKT_Description_EN_3, MKT_Description_EN_4, MKT_Description_ZH_1, MKT_Description_ZH_2, MKT_Description_ZH_3, MKT_Description_ZH_4, MKT_FINI_Code, MKT_Description_ZF, MKT_Min_dely_qty, MKT_Min_order_qty, MKT_Delivery_unit, MKT_Delivering_plant, MKT_Order_unit, MKT_Plant, MKT_Material_Attributes_1, MKT_Material_Attributes_2, MKT_Material_Attributes_3, MKT_EAN_UPC, MKT_Product_Cluster, MKT_Denominator_1, MKT_Denominator_2, MKT_Numerator_1, MKT_Numerator_2, MKT_Height, MKT_Width, MKT_Length, MKT_Unit_of_Dimension);
            }
            //魏军添加 控制dropdownlist的enable属性
            string item = null;
            string value = null;
            foreach (Control cr in this.Controls)
            {
                if (cr is DropDownList)
                {
                    DropDownList tb = (DropDownList)cr;
                    if (!tb.Enabled)
                    {
                        tb.Enabled = true;
                        item = tb.SelectedItem.Text;
                        value = tb.SelectedValue.ToString();
                        tb.Items.Clear();
                        tb.Items.Add(new ListItem(item, value));
                        tb.SelectedIndex = 0;
                        tb.ForeColor = System.Drawing.Color.DimGray;
                    }

                }
            }
            foreach (Control cr in this.MKT_P2.Controls)
            {
                if (cr is DropDownList)
                {
                    DropDownList tb = (DropDownList)cr;
                    if (!tb.Enabled)
                    {
                        tb.Enabled = true;
                        item = tb.SelectedItem.Text;
                        value = tb.SelectedValue.ToString();
                        tb.Items.Clear();
                        tb.Items.Add(new ListItem(item, value));
                        tb.SelectedIndex = 0;
                        tb.ForeColor = System.Drawing.Color.DimGray;
                    }

                }
            }
            foreach (Control cr in this.MKT_P1.Controls)
            {
                if (cr is DropDownList)
                {
                    DropDownList tb = (DropDownList)cr;
                    if (!tb.Enabled)
                    {
                        tb.Enabled = true;
                        item = tb.SelectedItem.Text;
                        value = tb.SelectedValue.ToString();
                        tb.Items.Clear();
                        tb.Items.Add(new ListItem(item, value));
                        tb.SelectedIndex = 0;
                    }
                    tb.ForeColor = System.Drawing.Color.DimGray;
                }
            }


        }
        #endregion

        #region 方法 InitDropdownList(初始化下拉框数据源)
        private void InitDropDownList()
        {
            MKT_Volume_Rebate_Group.Items.Clear();
            MKT_Volume_Rebate_Group.Items.Add(new ListItem("", ""));
            IList<m_VolumeRebateGroup> vrgs = (m_VolumeRebateGroup.status == 1).List<m_VolumeRebateGroup>();
            foreach (m_VolumeRebateGroup vrg in vrgs)
            {
                MKT_Volume_Rebate_Group.Items.Add(new ListItem(vrg.Volume_Rebate_Group + ", " + vrg.Description, vrg.Volume_Rebate_Group));
            }




            MKT_Profit_Center.Items.Clear();
            MKT_Profit_Center.Items.Add(new ListItem("", ""));

            IList<m_ProfitCenter> pcs;

            if (FORM == "FORM-064" || FORM == "FORM-074")
            {
                pcs = (m_ProfitCenter.status == 1 & m_ProfitCenter.company == "HK").List<m_ProfitCenter>();
            }
            //else if (FORM == "FORM-T009")
            //{
            //    MKT_Profit_Center.Items.Add(new ListItem("D4239003", "D4239003"));
            //}
            else
            {

                pcs = (m_ProfitCenter.status == 1 & m_ProfitCenter.company != "HK" & m_ProfitCenter.company != "TW-PKG" & m_ProfitCenter.company != "TW-DECO").List<m_ProfitCenter>();

            }
            if (FORM == "FORM-TW-010" || FORM == "FORM-TW-011" || FORM == "FORM-T010")
            {
                pcs = (m_ProfitCenter.status == 1 & m_ProfitCenter.company == "TW-PKG").List<m_ProfitCenter>();
            }
            if (FORM == "FORM-TW-007" || FORM == "FORM-TW-007-1" || FORM == "FORM-T001")
            {
                pcs = (m_ProfitCenter.status == 1 & m_ProfitCenter.company == "TW-DECO").List<m_ProfitCenter>();
            }
            foreach (m_ProfitCenter pc in pcs)
            {
                bool Flg = true;
                foreach (ListItem li in MKT_Profit_Center.Items)
                {
                    if (pc.Profit_Center == li.Value)
                    {
                        Flg = false;
                        break;
                    }
                }

                if (Flg)
                {
                    if (FORM.Contains("T"))
                    {
                        MKT_Profit_Center.Items.Add(new ListItem(pc.Profit_Center, pc.Profit_Center));
                    }
                    else
                    {
                        MKT_Profit_Center.Items.Add(new ListItem(pc.Profit_Center + ", " + pc.Channel, pc.Profit_Center));
                    }
                }
            }
            if (FORM == "FORM-TW-007")
            {
                MKT_Profit_Center.Items.Clear();
                MKT_Profit_Center.Items.Add(new ListItem("", ""));
                MKT_Profit_Center.Items.Add(new ListItem("P4239001", "P4239001"));
                MKT_Profit_Center.Items.Add(new ListItem("D4239003", "D4239003"));
                MKT_Profit_Center.Items.Add(new ListItem("D4239101", "D4239101"));
                MKT_Profit_Center.Items.Add(new ListItem("D4239401", "D4239401"));
                MKT_Profit_Center.Items.Add(new ListItem("D4239301", "D4239301"));

            }
            if (FORM == "FORM-T009")
            {
                MKT_Profit_Center.Items.Add(new ListItem("D4239001", "D4239001"));
            }
            if (FORM == "FORM-T012")
            {
                MKT_Profit_Center.Items.Add(new ListItem("P4239001", "P4239001"));
            }
            if (FORM == "FORM-T006")
            {
                MKT_Profit_Center.Items.Add(new ListItem("D4239003", "D4239003"));
            }
            MKT_Material_Group_4.Items.Clear();
            MKT_Material_Group_4.Items.Add(new ListItem("", ""));
            if (FORM == "FORM-TW-010" || FORM == "FORM-T010" || FORM == "FORM-T012")
            {
                IList<m_TW_Material_Group4> tmg4 = (m_TW_Material_Group4.status == 1 & m_TW_Material_Group4.material_Group4_Type == "PKG").List<m_TW_Material_Group4>();
                foreach (m_TW_Material_Group4 mg4 in tmg4)
                {
                    MKT_Material_Group_4.Items.Add(new ListItem(mg4.Material_Group4 + ", " + mg4.Material_Group4_Description, mg4.Material_Group4));
                }
            }
            else if (FORM == "FORM-T001" || FORM == "FORM-T006" || FORM == "FORM-TW-007")
            {
                IList<m_TW_Material_Group4> tmg4 = (m_TW_Material_Group4.status == 1 & m_TW_Material_Group4.material_Group4_Type == "DECO").List<m_TW_Material_Group4>();
                foreach (m_TW_Material_Group4 mg4 in tmg4)
                {
                    MKT_Material_Group_4.Items.Add(new ListItem(mg4.Material_Group4 + ", " + mg4.Material_Group4_Description, mg4.Material_Group4));
                }
            }
            else if (FORM == "FORM-T009")
            {
                MKT_Material_Group_4.Items.Add(new ListItem("K13", "K13"));
            }
            else if (FORM == "FORM-T002")
            {
                MKT_Material_Group_4.Items.Add(new ListItem("K15", "K15"));
            }
            else
            {
                IList<m_MaterialGroup4> mg4s = (m_MaterialGroup4.status == 1).List<m_MaterialGroup4>();
                foreach (m_MaterialGroup4 mg4 in mg4s)
                {
                    MKT_Material_Group_4.Items.Add(new ListItem(mg4.Material_Group_4 + ", " + mg4.Description, mg4.Material_Group_4));
                }
            }
            if (TaskAPI.Process == "TW FINI Code Application")
            {
                MKT_Material_Group_4.Items.Clear();
                MKT_Material_Group_4.Items.Add(new ListItem("", ""));
                IList<m_TW_Material_Group4> tmg4 = (m_TW_Material_Group4.status == 1).List<m_TW_Material_Group4>();
                foreach (m_TW_Material_Group4 mg4 in tmg4)
                {
                    MKT_Material_Group_4.Items.Add(new ListItem(mg4.Material_Group4 + ", " + mg4.Material_Group4_Description, mg4.Material_Group4));
                }

            }
            if (TaskAPI.Process != "TW MTO Application-DECO" && TaskAPI.Process != "TW MTO Application-PKG")
            {
                MKT_Lab_Office.Items.Clear();
                MKT_Lab_Office.Items.Add(new ListItem("", ""));
                IList<m_LabOffice> los = (m_LabOffice.status == 1 & m_LabOffice.scope.Like("%" + Category + "%")).List<m_LabOffice>();
                foreach (m_LabOffice lo in los)
                {
                    MKT_Lab_Office.Items.Add(new ListItem(lo.Lab_Office + ", " + lo.Description, lo.Lab_Office));
                }
            }
            if (TaskAPI.Process == "TW MTO Application-DECO" && FORM == "FORM-T006")
            {
                MKT_Lab_Office.Items.Clear();
                MKT_Lab_Office.Items.Add(new ListItem("", ""));
                IList<m_TW_Lab_Office> lab = (m_TW_Lab_Office.status == 1 & m_TW_Lab_Office.lab_Office_Type == "DECO").List<m_TW_Lab_Office>();
                foreach (m_TW_Lab_Office la in lab)
                {
                    MKT_Lab_Office.Items.Add(new ListItem(la.Lab_Office + ", " + la.Lab_Office_Description, la.Lab_Office));
                }
            }
            if (TaskAPI.Process == "TW Trade Code Application-PKG")
            {
                MKT_Lab_Office.Items.Clear();
                MKT_Lab_Office.Items.Add(new ListItem("", ""));
                IList<m_TW_Lab_Office> lab = (m_TW_Lab_Office.status == 1 & m_TW_Lab_Office.lab_Office_Type == "PKG").List<m_TW_Lab_Office>();
                foreach (m_TW_Lab_Office la in lab)
                {
                    MKT_Lab_Office.Items.Add(new ListItem(la.Lab_Office + ", " + la.Lab_Office_Description, la.Lab_Office));
                }
            }
            //MKT_Lab_Office.Items.Clear();
            //MKT_Lab_Office.Items.Add(new ListItem("", ""));
            //IList<m_LabOffice> los = (m_LabOffice.status == 1 & m_LabOffice.scope.Like("%" + Category + "%")).List<m_LabOffice>();
            //foreach (m_LabOffice lo in los)
            //{
            //    MKT_Lab_Office.Items.Add(new ListItem(lo.Lab_Office + ", " + lo.Description, lo.Lab_Office));
            //}
            if (FORM == "FORM-TW-010" || FORM == "FORM-TW-007")
            {
                MKT_Lab_Office.Items.Clear();
                MKT_Lab_Office.Items.Add(new ListItem("", ""));
                MKT_Lab_Office.Items.Add(new ListItem("KBC", "KBC"));
                MKT_Lab_Office.Items.Add(new ListItem("KBD", "KBD"));
                if (FORM == "FORM-TW-007")
                {
                    MKT_Lab_Office.Items.Add(new ListItem("KBA", "KBA"));
                }
            }
            if (FORM == "FORM-T002")
            {
                MKT_Lab_Office.Items.Clear();
                MKT_Lab_Office.Items.Add(new ListItem("", ""));
                MKT_Lab_Office.Items.Add(new ListItem("KBF", "KBF"));
            }


            //else if (FORM == "FORM-T006")
            //{
            //    MKT_Lab_Office.Items.Clear();
            //    MKT_Lab_Office.Items.Add(new ListItem("", ""));
            //    IList<m_TW_Lab_Office> tlo = (m_TW_Lab_Office.status == 1 & m_TW_Lab_Office.lab_Office_Type == "DECO").List<m_TW_Lab_Office>();
            //    foreach (m_TW_Lab_Office tl in tlo)
            //    {
            //        MKT_Lab_Office.Items.Add(new ListItem(tl.Lab_Office + ", " + tl.Lab_Office_Description, tl.Lab_Office));
            //    }
            //}
            else if (FORM == "FORM-T010")
            {
                MKT_Lab_Office.Items.Clear();
                MKT_Lab_Office.Items.Add(new ListItem("", ""));
                IList<m_TW_Lab_Office> tlo = (m_TW_Lab_Office.status == 1 & m_TW_Lab_Office.lab_Office_Type == "PKG").List<m_TW_Lab_Office>();
                foreach (m_TW_Lab_Office tl in tlo)
                {
                    MKT_Lab_Office.Items.Add(new ListItem(tl.Lab_Office + ", " + tl.Lab_Office_Description, tl.Lab_Office));
                }
            }
            //MKT_Sales_Org:begin
            MKT_Sales_Org.Items.Clear();
            switch (FORM)
            {
                case "FORM-064":
                case "FORM-074":
                case "FORM-065-1":
                case "FORM-065-2":
                    MKT_Sales_Org.Items.Add(new ListItem("CN04, 香港", "CN04"));
                    break;
                case "FORM-001":
                case "FORM-005":
                    MKT_Sales_Org.Items.Add(new ListItem("CN02, 广州", "CN02"));
                    MKT_Sales_Org.Items.Add(new ListItem("CN03, 廊坊", "CN03"));
                    MKT_Sales_Org.Items.Add(new ListItem("CN05, 广州Branch", "CN05"));
                    MKT_Sales_Org.Items.Add(new ListItem("CN06, 廊坊Branch", "CN06"));
                    MKT_Sales_Org.Items.Add(new ListItem("CN88, 上海", "CN88"));
                    break;
                case "FORM-012":
                    if (TaskAPI.Process == "MTO Base Code Application")
                    {
                        MKT_Sales_Org.Items.Add(new ListItem("CN02, 广州", "CN02"));
                        MKT_Sales_Org.Items.Add(new ListItem("CN03, 廊坊", "CN03"));
                        MKT_Sales_Org.Items.Add(new ListItem("CN05, 广州Branch", "CN05"));
                        MKT_Sales_Org.Items.Add(new ListItem("CN06, 廊坊Branch", "CN06"));
                        MKT_Sales_Org.Items.Add(new ListItem("CN88, 上海", "CN88"));
                    }
                    if (TaskAPI.Process == "HK-MTO Base Code Application")
                    {
                        MKT_Sales_Org.Items.Add(new ListItem("CN02, 广州", "CN02"));
                        MKT_Sales_Org.Items.Add(new ListItem("CN04, 香港", "CN04"));
                        MKT_Sales_Org.Items.Add(new ListItem("CN88, Dummy", "CN88"));
                    }

                    break;

                case "FORM-031-1":
                case "FORM-031-2":
                    MKT_Sales_Org.Items.Add(new ListItem("CN02, 广州", "CN02"));
                    //MKT_Sales_Org.Items.Add(new ListItem("CN08, Dummy", "CN08"));
                    break;

                case "FORM-067":
                    MKT_Sales_Org.Items.Add(new ListItem("CN02, 广州", "CN02"));
                    MKT_Sales_Org.Items.Add(new ListItem("CN04, 香港", "CN04"));
                    MKT_Sales_Org.Items.Add(new ListItem("CN88, Dummy", "CN88"));
                    break;

                case "FORM-062":
                    MKT_Sales_Org.Items.Add(new ListItem("CN02, 广州", "CN02"));
                    MKT_Sales_Org.Items.Add(new ListItem("CN04, 香港", "CN04"));
                    MKT_Sales_Org.Items.Add(new ListItem("CN88, Dummy", "CN88"));
                    break;
                case "FORM-T001":
                case "FORM-T009":
                case "FORM-TW-010":
                case "FORM-TW-007":
                case "FORM-T006":
                case "FORM-T010":
                case "FORM-T012":
                case "FORM-T018":
                case "FORM-T002":
                    MKT_Sales_Org.Items.Add(new ListItem("TW01, 臺灣", "TW01"));
                    MKT_Sales_Org.Items[0].Selected = true;
                    break;
                default:
                    MKT_Sales_Org.Items.Add(new ListItem("CN02, 广州", "CN02"));
                    MKT_Sales_Org.Items.Add(new ListItem("CN03, 廊坊", "CN03"));
                    MKT_Sales_Org.Items.Add(new ListItem("CN05, 广州Branch", "CN05"));
                    MKT_Sales_Org.Items.Add(new ListItem("CN06, 廊坊Branch", "CN06"));
                    MKT_Sales_Org.Items.Add(new ListItem("CN88, 上海", "CN88"));
                    break;
            }
            //if (FORM == "FORM-064" || FORM == "FORM-074" || FORM == "FORM-065-1" || FORM == "FORM-065-2")
            //{
            //    MKT_Sales_Org.Items.Add(new ListItem("CN04, 香港", "CN04"));
            //}
            //else
            //{
            //    MKT_Sales_Org.Items.Add(new ListItem("CN01, 上海", "CN01"));
            //    MKT_Sales_Org.Items.Add(new ListItem("CN02, 广州", "CN02"));
            //    MKT_Sales_Org.Items.Add(new ListItem("CN03, 廊坊", "CN03"));
            //    MKT_Sales_Org.Items.Add(new ListItem("CN08, Dummy", "CN08"));

            //    if (FORM == "FORM-001" || FORM == "FORM-005")
            //    {
            //        MKT_Sales_Org.Items.Add(new ListItem("CN01, 上海", "CN01"));
            //        MKT_Sales_Org.Items.Add(new ListItem("CN02, 广州", "CN02"));
            //        MKT_Sales_Org.Items.Add(new ListItem("CN03, 廊坊", "CN03"));
            //        MKT_Sales_Org.Items.Add(new ListItem("CN88, Dummy", "CN88"));
            //    }

            //    if (FORM == "FORM-031")
            //    {
            //        MKT_Sales_Org.Items.Add(new ListItem("CN02, 广州", "CN02"));
            //        MKT_Sales_Org.Items.Add(new ListItem("CN08, Dummy", "CN08"));
            //    }
            //}

            if (Action == "C" || Action == "E" || Action == "S")
            {
                foreach (ListItem li in MKT_Sales_Org.Items)
                {
                    li.Selected = true;
                }
            }
            //MKT_Sales_Org:end

            //MKT_Distr_Channel:begin
            MKT_Distr_Channel.Items.Clear();
            if (FORM != "FORM-031-1" && FORM != "FORM-031-2")
            {
                MKT_Distr_Channel.Items.Add(new ListItem("10, 3rd parties", "10"));
            }

            if (FORM != "FORM-074" && FORM != "FORM-065-1" && FORM != "FORM-065-2" && FORM != "FORM-064" && FORM != "FORM-067" && FORM != "FORM-T001")
            {
                MKT_Distr_Channel.Items.Add(new ListItem("20, ICD", "20"));
            }
            if (FORM == "FORM-067" && TaskAPI.Process == "HK NPL Master Application")
            {
                MKT_Distr_Channel.Items.Add(new ListItem("20, ICD", "20"));

            }
            //if (FORM == "FORM-031-1" && TaskAPI.Process == "PKG Fini Code BOM Application")
            //{
            //    MKT_Distr_Channel.Items.Add(new ListItem("20, ICD", "20"));

            //}
            //if (FORM == "FORM-031-2" && TaskAPI.Process == "PKG Fini Code BOM Application")
            //{
            //    MKT_Distr_Channel.Items.Add(new ListItem("20, ICD", "20"));

            //}
            if (FORM == "FORM-T012" || FORM == "FORM-TW-010" || FORM == "FORM-T006" || FORM == "FORM-TW-007" || FORM == "FORM-T010" || FORM == "FORM-T018" || FORM == "FORM-T002")
            {
                MKT_Distr_Channel.Items.Clear();
                MKT_Distr_Channel.Items.Add(new ListItem("10-Third party", "10"));
                MKT_Distr_Channel.Items.Add(new ListItem("20-ICD", "20"));

            }
            if (Action == "C" || Action == "E" || Action == "S")
            {
                foreach (ListItem li in MKT_Distr_Channel.Items)
                {
                    if (FORM != "FORM-T010" && FORM != "FORM-T018")
                    {
                        li.Selected = true;
                    }
                    else
                    {
                        li.Selected = false;
                    }

                }
            }

            //Tang Bin新添加下拉列表框MKT_Attributes1，MKT_Attributes2和MKT_Profit_Center下拉列表的数据
            if (TaskAPI.Process == "TW NPL Application-PKG")
            {
                if (FORM == "FORM-TW-010")
                {
                    MKT_Attributes1.Items.Clear();
                    MKT_Attributes1.Items.Add(new ListItem("", ""));
                    MKT_Attributes2.Items.Clear();
                    MKT_Attributes2.Items.Add(new ListItem("", ""));
                    MKT_Profit_Center.Items.Clear();
                    MKT_Profit_Center.Items.Add(new ListItem("", ""));
                    MKT_Profit_Center.Items.Add(new ListItem("P4239001", "Local"));
                    MKT_Profit_Center.Items.Add(new ListItem("P4239002", "Export"));
                    MKT_Profit_Center.Items.Add(new ListItem("P4239003", "Intercompany"));
                    IList<m_TW_Attributes8> mtw1 = (m_TW_Attributes8.status == 1).List<m_TW_Attributes8>();
                    IList<m_TW_Attributes9> mtw2 = (m_TW_Attributes9.status == 1).List<m_TW_Attributes9>();
                    foreach (m_TW_Attributes8 mtw in mtw1)
                    {
                        MKT_Attributes1.Items.Add(new ListItem(mtw.TW_Attributes8));
                    }
                    foreach (m_TW_Attributes9 mtw in mtw2)
                    {
                        MKT_Attributes2.Items.Add(new ListItem(mtw.TW_Attributes9));
                    }
                }
            }


        }
        //MKT_Distr_Channel.Items.Clear();
        //MKT_Distr_Channel.Items.Add(new ListItem("10, 3rd parties", "10"));
        //MKT_Distr_Channel.Items.Add(new ListItem("20, ICD", "20"));
        //if (Action == "C")
        //{
        //    foreach (ListItem li in MKT_Distr_Channel.Items)
        //    {
        //        li.Selected = true;
        //    }
        //}
        //}
        #endregion

        #region 方法 InitShowHide(初始化控件显示)
        private void InitShowHide()
        {
            #region 设置禁启用
            SetVisible(false, MKT_MTO_OR_NPL, MKT_MTO_OR_NPL_L, MKT_Description_ZF, MKT_Description_ZF_L, MKT_Size_dimension, MKT_Size_dimension_L
                            , MKT_FINI_Code, MKT_SKU_BPCS_Code, MKT_Sales_Org, MKT_Distr_Channel, MKT_Volume_Rebate_Group
                            , MKT_Material_Group_4, MKT_Product_Hierarchy, MKT_Profit_Center, MKT_Product_Line_Code, MKT_Product_Group
                            , MKT_IsSale, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Description_EN, MKT_Description_ZH, MKT_Lab_Office
                            , MKT_Easy_Order_Entry_Code, MKT_Marterial_Group, MKT_GenItemCatGroup, MKT_X_Plant_Matl, MKT_Description_EN_1, MKT_Description_EN_2
                            , MKT_Description_EN_3, MKT_Description_EN_4, MKT_Description_ZH_1, MKT_Description_ZH_2, MKT_Description_ZH_3
                            , MKT_Description_ZH_4, MKT_FINI_Code, MKT_Description_ZF, MKT_Type_Select, MKT_Is_Generic
                            , MKT_FINI_Code_L, MKT_SKU_BPCS_Code_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Volume_Rebate_Group_L
                            , MKT_Material_Group_4_L, MKT_Product_Hierarchy_L, MKT_Profit_Center_L, MKT_Product_Line_Code_L
                            , MKT_Product_Group_L, MKT_IsSale_L, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Description_EN_L
                            , MKT_Description_ZH_L, MKT_Lab_Office_L, MKT_Easy_Order_Entry_Code_L, MKT_Marterial_Group_L
                            , MKT_GenItemCatGroup_L, MKT_X_Plant_Matl_L, MKT_Description_EN_0, MKT_Description_ZH_0, MKT_Description_EN_L
                            , MKT_Description_EN_L_0, MKT_Description_EN_L_1, MKT_Description_EN_L_2, MKT_Description_EN_L_3
                            , MKT_Description_EN_L_4, MKT_Description_ZH_L, MKT_Description, MKT_FINI_Code_L, MKT_Description_ZF_L
                            , MKT_Type_Select_L, MKT_Is_Generic_L, MKT_Min_dely_qty, MKT_Min_dely_qty_L, MKT_Min_order_qty
                            , MKT_Min_order_qty_L, MKT_Delivery_unit, MKT_Delivery_unit_L, MKT_Delivering_plant, MKT_Delivering_plant_L
                            , MKT_Order_unit, MKT_Order_unit_L, MKT_Plant, MKT_Plant_L, MKT_Gross_Weight, MKT_Gross_Weight_L, MKT_Height
                            , MKT_Height_L, MKT_Width, MKT_Width_L, MKT_Length, MKT_Length_L
                            , MKT_Unit_of_Dimension, MKT_Unit_of_Dimension_L, MKT_Net_Weight, MKT_Net_Weight_L, MKT_Volume, MKT_Volume_L
                            , MKT_EAN_UPC, MKT_EAN_UPC_L, MKT_EAN_Category, MKT_EAN_Category_L, MKT_Material_Attributes_1, MKT_Material_Attributes_1_L
                            , MKT_Material_Attributes_2, MKT_Material_Attributes_2_L, MKT_Material_Attributes_3, MKT_Material_Attributes_3_L, MKT_Date_From_L, MKT_Calendar1
                            , MKT_Color_Code_L, MKT_Color_Code, MKT_Pack_Size, MKT_Pack_Size_L, MKT_Item_category_group, MKT_Item_category_group_L
                            , MKT_Exemption, MKT_Exemption_L, MKT_Issdate, MKT_Issdate_L, MKT_Minimun_delivery_quantity_L, MKT_Minimun_delivery_quantity, MKT_Minimun_order_quantity_L, MKT_Minimun_order_quantity, MKT_Delivering_Plant_1_L, MKT_Item_Category_Group_1_L, MKT_Departure_country_L, MKT_Tax_category_L, MKT_Tax_classification_L, MKT_Acct_Assignment_Grp_L, MKT_Cash_Discount_L, MKT_Easy_Order_Entry_L, MKT_Delivering_Plant_1, MKT_Item_Category_Group_1, MKT_Departure_country, MKT_Tax_category, MKT_Tax_classification, MKT_Acct_Assignment_Grp, MKT_Cash_Discount, MKT_Easy_Order_Entry
                            , MKT_A_Coat, MKT_A_Coat_L, MKT_Type, MKT_Type_L);
            SetVisible(false, MKT_Dchain_spec_status_L, MKT_Dchain_spec_status, MKT_MTO_OR_NPL_L, MKT_MTO_OR_NPL, MKT_Product_Cluster_L, MKT_Product_Cluster, MKT_Denominator_1_L, MKT_Denominator_1, MKT_Numerator_1_L, MKT_Numerator_1, MKT_Denominator_2_L, MKT_Denominator_2, MKT_Numerator_2_L, MKT_Numerator_2);
            SetVisible(false, MKT_Unit_Of_Measure_L, MKT_Unit_Of_Measure_X_L, MKT_Unit_Of_Measure_AUN_L, MKT_Unit_Of_Measure_Y_L, MKT_Unit_Of_Measure_Bun_L, MKT_Unit_Of_Measure_X, MKT_Unit_Of_Measure_AUN, MKT_Unit_Of_Measure_Y, MKT_Unit_Of_Measure_Bun, MKT_Unit_Of_Measure_X_1, MKT_Unit_Of_Measure_AUN_1
                            , MKT_Unit_Of_Measure_Y_1, MKT_Unit_Of_Measure_Bun_1, MKT_Unit_Of_Measure_X_2, MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_Y_2, MKT_Unit_Of_Measure_Bun_2, MKT_Product_Line_Code_L1, MKT_Product_Line_Code1);
            //Tang Bin添加
            SetVisible(false, MKT_Attributes1_L, MKT_Attributes1, MKT_Attributes2, MKT_Attributes2_L);


            switch (FORM)
            {
                case "FORM-001":
                    SetVisible(true, MKT_SKU_BPCS_Code, MKT_SKU_BPCS_Code_L, MKT_Base_Unit_Of_Measure, MKT_Base_Unit_Of_Measure_L, MKT_Division, MKT_Division_L,
                                     MKT_Sales_Org, MKT_Distr_Channel, MKT_Volume_Rebate_Group, MKT_Material_Group_4, MKT_Product_Hierarchy, MKT_Profit_Center,
                                     MKT_Product_Line_Code, MKT_Marterial_Group, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Volume_Rebate_Group_L, MKT_Material_Group_4_L,
                                     MKT_Product_Hierarchy_L, MKT_Profit_Center_L, MKT_Product_Line_Code_L, MKT_Marterial_Group_L, MKT_Product_Group, MKT_Product_Group_L);
                    break;
                case "FORM-002":
                    SetVisible(true, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Lab_Office, MKT_Marterial_Group, MKT_GenItemCatGroup, MKT_Description_EN_1, MKT_Description_EN_2, MKT_Description_EN_3, MKT_Description_EN_4, MKT_Description_ZH_1, MKT_Description_ZH_2, MKT_Description_ZH_3, MKT_Description_ZH_4
                                   , MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Lab_Office_L, MKT_Marterial_Group_L, MKT_GenItemCatGroup_L, MKT_Description_EN_0, MKT_Description_ZH_0, MKT_Description_EN_L_0, MKT_Description_EN_L_1, MKT_Description_EN_L_2, MKT_Description_EN_L_3, MKT_Description_EN_L_4, MKT_Description);
                    SetVisible(false, MKT_P1, MKT_P2);
                    if (Category == "PACK")
                    {
                        SetVisible(true, MKT_Exemption, MKT_Exemption_L, MKT_Issdate, MKT_Issdate_L);
                    }
                    break;
                case "FORM-005":
                    if (Category == "FINI")
                    {
                        SetVisible(true, MKT_SKU_BPCS_Code, MKT_Sales_Org, MKT_Distr_Channel, MKT_Volume_Rebate_Group, MKT_Material_Group_4, MKT_Product_Hierarchy, MKT_Product_Line_Code, MKT_Product_Group, MKT_IsSale, MKT_Base_Unit_Of_Measure, MKT_Description_EN, MKT_Description_ZH, MKT_Lab_Office, MKT_Easy_Order_Entry_Code, MKT_Marterial_Group, MKT_Division, MKT_Profit_Center
                                       , MKT_SKU_BPCS_Code_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Volume_Rebate_Group_L, MKT_Material_Group_4_L, MKT_Product_Hierarchy_L, MKT_Product_Line_Code_L, MKT_Product_Group_L, MKT_IsSale_L, MKT_Base_Unit_Of_Measure_L, MKT_Description_EN_L, MKT_Description_ZH_L, MKT_Lab_Office_L, MKT_Easy_Order_Entry_Code_L, MKT_Marterial_Group_L, MKT_Division_L, MKT_Profit_Center_L);
                    }
                    else
                    {
                        SetVisible(true, MKT_Profit_Center, MKT_Division, MKT_Marterial_Group, MKT_Profit_Center_L, MKT_Division_L, MKT_Marterial_Group_L);
                    }
                    break;
                case "FORM-012":
                case "FORM-077":
                    if (Category == "SEFI")
                    {
                        SetVisible(true, MKT_Marterial_Group, MKT_Division, MKT_Profit_Center, MKT_Marterial_Group_L, MKT_Division_L, MKT_Profit_Center_L);
                    }
                    if (Category == "FINI" && TaskAPI.Process != "HK NPL Master Applicationn")
                    {
                        SetVisible(true, MKT_FINI_Code, MKT_Sales_Org, MKT_Distr_Channel, MKT_Description_EN, MKT_Description_ZH, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Marterial_Group, MKT_Size_dimension, MKT_Product_Group, MKT_Material_Group_4, MKT_Volume_Rebate_Group, MKT_Product_Group, MKT_Product_Hierarchy, MKT_Profit_Center, MKT_Lab_Office, MKT_FINI_Code, MKT_Size_dimension, MKT_Product_Line_Code
                                       , MKT_FINI_Code_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Description_EN_L, MKT_Description_ZH_L, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Marterial_Group_L, MKT_Size_dimension_L, MKT_Product_Group_L, MKT_Material_Group_4_L, MKT_Volume_Rebate_Group_L, MKT_Product_Group_L, MKT_Product_Hierarchy_L, MKT_Profit_Center_L, MKT_Lab_Office_L, MKT_FINI_Code_L, MKT_Size_dimension_L, MKT_Product_Line_Code_L);
                        if (TaskAPI.Process == "MTO Template Data Collection")
                        {
                            SetVisible(true, MKT_Pack_Size_L, MKT_Pack_Size);
                            SetVisible(false, MKT_FINI_Code, MKT_FINI_Code_L);
                        }
                    }
                    if (Category == "FINI" && TaskAPI.Process == "MTO Template Data Collection")
                    {
                        SetVisible(false, MKT_Product_Line_Code, MKT_Product_Line_Code_L);
                        SetVisible(true, MKT_Product_Line_Code_L1, MKT_Product_Line_Code1);
                    }
                    break;
                case "FORM-074":
                    if (Category == "SEFI")
                    {
                        SetVisible(true, MKT_Marterial_Group, MKT_Division, MKT_Profit_Center, MKT_Marterial_Group_L, MKT_Division_L, MKT_Profit_Center_L);
                    }

                    if (Category == "FINI")
                    {
                        SetVisible(true, MKT_FINI_Code, MKT_Sales_Org, MKT_Distr_Channel, MKT_Description_EN, MKT_Description_ZH, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Marterial_Group, MKT_Size_dimension, MKT_Product_Group, MKT_Material_Group_4, MKT_Volume_Rebate_Group, MKT_Product_Group, MKT_Product_Hierarchy, MKT_Profit_Center, MKT_Lab_Office, MKT_FINI_Code, MKT_Size_dimension, MKT_Type_Select, MKT_Is_Generic
                                       , MKT_FINI_Code_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Description_EN_L, MKT_Description_ZH_L, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Marterial_Group_L, MKT_Size_dimension_L, MKT_Product_Group_L, MKT_Material_Group_4_L, MKT_Volume_Rebate_Group_L, MKT_Product_Group_L, MKT_Product_Hierarchy_L, MKT_Profit_Center_L, MKT_Lab_Office_L, MKT_FINI_Code_L, MKT_Size_dimension_L, MKT_Type_Select_L, MKT_Is_Generic_L);
                    }

                    if (FORM == "FORM-074")
                    {
                        MKT_Title.Text = "&nbsp;";

                        SetVisible(true, MKT_Product_Line_Code, MKT_Product_Line_Code_L, MKT_Description_ZF, MKT_Description_ZF_L, MKT_Type_Select, MKT_Type_Select_L, MKT_Is_Generic, MKT_Is_Generic_L,
                                         MKT_Delivering_plant, MKT_Delivering_plant_L);

                        if ((Page as PMDC).Actions.SelectedValue == "Creation")
                        {
                            SetVisible(true, MKT_Type_Select, MKT_Type_Select_L);
                        }
                        else
                        {
                            SetVisible(false, MKT_Type_Select, MKT_Type_Select_L);
                        }
                    }

                    break;
                case "FORM-010":
                //case "FORM-062":
                case "FORM-064":
                case "FORM-065-1":
                case "FORM-065-2":
                    if (FORM == "FORM-064" || FORM == "FORM-065-1" || FORM == "FORM-065-2")     //Form-062 HK Fini code  NPL V2.0 100925 && Form-064 HK Trade Code V2.0 100925.xls
                    {
                        MKT_Title.Text = "&nbsp;";
                    }

                    SetVisible(true, MKT_SKU_BPCS_Code, MKT_Sales_Org, MKT_Distr_Channel, MKT_Volume_Rebate_Group, MKT_Material_Group_4, MKT_Product_Hierarchy, MKT_Profit_Center, MKT_Product_Line_Code, MKT_Product_Group
                                   , MKT_SKU_BPCS_Code_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Volume_Rebate_Group_L, MKT_Material_Group_4_L, MKT_Product_Hierarchy_L, MKT_Profit_Center_L, MKT_Product_Line_Code_L, MKT_Product_Group_L);

                    if (FORM == "FORM-064" || FORM == "FORM-065-1" || FORM == "FORM-065-2")
                    {
                        SetVisible(false, MKT_Product_Line_Code, MKT_Product_Line_Code_L, MKT_Material_Group_4, MKT_Material_Group_4_L);
                        SetVisible(true, MKT_Marterial_Group, MKT_Marterial_Group_L, MKT_Base_Unit_Of_Measure, MKT_Base_Unit_Of_Measure_L, MKT_Division,
                                         MKT_Division_L, MKT_Description_EN, MKT_Description_EN_L, MKT_Description_ZH, MKT_Description_ZH_L, MKT_Description_ZF,
                                         MKT_Description_ZF_L);

                        if (FORM == "FORM-064")
                        {
                            SetVisible(true, MKT_Lab_Office, MKT_Lab_Office_L, MKT_Product_Line_Code, MKT_Product_Line_Code_L, MKT_Material_Group_4,
                                             MKT_Material_Group_4_L, MKT_Delivering_plant, MKT_Delivering_plant_L, MKT_Size_dimension, MKT_Size_dimension_L);
                        }

                        if (FORM == "FORM-065-1")
                        {
                            MKT_SKU_BPCS_Code_L.Text = "ADVE Code:";

                            SetVisible(false, MKT_Product_Group, MKT_Product_Group_L, MKT_Product_Hierarchy, MKT_Product_Hierarchy_L);
                            SetVisible(true, MKT_Min_dely_qty, MKT_Min_dely_qty_L, MKT_Min_order_qty, MKT_Min_order_qty_L, MKT_Delivery_unit, MKT_Delivery_unit_L,
                                             MKT_Delivering_plant, MKT_Delivering_plant_L, MKT_Order_unit, MKT_Order_unit_L, MKT_Lab_Office, MKT_Lab_Office_L);
                        }

                        if (FORM == "FORM-065-2")
                        {
                            MKT_SKU_BPCS_Code_L.Text = "ADVE Code:";

                            SetVisible(false, MKT_Product_Group, MKT_Product_Group_L, MKT_Product_Hierarchy, MKT_Product_Hierarchy_L, MKT_Volume_Rebate_Group,
                                              MKT_Volume_Rebate_Group_L);
                        }
                    }
                    break;

                case "FORM-062":
                    MKT_Title.Text = "HK";
                    MKT_Is_Generic_L.Text = "Is it need to create Generic Code";
                    SetVisible(true, MKT_Is_Generic, MKT_FINI_Code, MKT_Sales_Org, MKT_Distr_Channel, MKT_Description_EN, MKT_Description_ZH, MKT_Description_ZF
                                   , MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Marterial_Group, MKT_Size_dimension, MKT_Product_Line_Code, MKT_Delivering_plant
                                   , MKT_Material_Group_4, MKT_Volume_Rebate_Group, MKT_Product_Group, MKT_Product_Hierarchy, MKT_Profit_Center, MKT_Lab_Office, MKT_Delivering_plant_L
                                   , MKT_Is_Generic_L, MKT_FINI_Code_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Description_EN_L, MKT_Description_ZH_L, MKT_Description_ZF_L
                                   , MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Marterial_Group_L, MKT_Size_dimension_L, MKT_Product_Line_Code_L
                                   , MKT_Material_Group_4_L, MKT_Volume_Rebate_Group_L, MKT_Product_Group_L, MKT_Product_Hierarchy_L, MKT_Profit_Center_L, MKT_Lab_Office_L);
                    break;

                case "FORM-035":
                    MKT_Title.Text = "&nbsp;";
                    SetVisible(true, MKT_Marterial_Group, MKT_Division, MKT_Profit_Center, MKT_Marterial_Group_L, MKT_Division_L, MKT_Profit_Center_L);
                    break;
                case "FORM-043":
                    MKT_Title.Text = "&nbsp;";
                    MKT_SKU_BPCS_Code_L.Text = "BPCS Code:";
                    SetVisible(true, MKT_Description_EN, MKT_Description_ZH, MKT_Marterial_Group, MKT_Lab_Office, MKT_Base_Unit_Of_Measure, MKT_GenItemCatGroup, MKT_Division, MKT_SKU_BPCS_Code, MKT_Profit_Center
                                   , MKT_Description_EN_L, MKT_Description_ZH_L, MKT_Marterial_Group_L, MKT_Lab_Office_L, MKT_Base_Unit_Of_Measure_L, MKT_GenItemCatGroup_L, MKT_Division_L, MKT_SKU_BPCS_Code_L, MKT_Profit_Center_L);
                    break;
                case "FORM-031-1":
                    MKT_Title.Text = "&nbsp;";
                    SetVisible(true, MKT_FINI_Code, MKT_Sales_Org, MKT_Distr_Channel, MKT_Description_EN, MKT_Description_ZH, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Marterial_Group, MKT_Size_dimension, MKT_Product_Line_Code, MKT_Product_Group, MKT_Volume_Rebate_Group, MKT_Material_Group_4, MKT_Lab_Office, MKT_Profit_Center, MKT_Easy_Order_Entry_Code, MKT_Delivering_plant
                                   , MKT_FINI_Code_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Description_EN_L, MKT_Description_ZH_L, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Marterial_Group_L, MKT_Size_dimension_L, MKT_Product_Line_Code_L, MKT_Product_Group_L, MKT_Volume_Rebate_Group_L, MKT_Material_Group_4_L, MKT_Lab_Office_L, MKT_Profit_Center_L, MKT_Easy_Order_Entry_Code_L, MKT_Delivering_plant_L);
                    break;
                case "FORM-031-2":
                    MKT_Title.Text = "&nbsp;";
                    SetVisible(true, MKT_FINI_Code, MKT_Sales_Org, MKT_Distr_Channel, MKT_Description_EN, MKT_Description_ZH, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Marterial_Group, MKT_Size_dimension, MKT_Product_Line_Code, MKT_Product_Group, MKT_Volume_Rebate_Group, MKT_Material_Group_4, MKT_Lab_Office, MKT_Profit_Center, MKT_Easy_Order_Entry_Code, MKT_Delivering_plant
                                   , MKT_FINI_Code_L, MKT_Sales_Org_L, MKT_Marterial_Group, MKT_Description_EN_L, MKT_Description_ZH_L, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Marterial_Group_L, MKT_Size_dimension_L, MKT_Product_Line_Code_L, MKT_Product_Group_L, MKT_Volume_Rebate_Group_L, MKT_Material_Group_4_L, MKT_Lab_Office_L, MKT_Profit_Center_L, MKT_Easy_Order_Entry_Code_L, MKT_Delivering_plant_L);
                    break;
                case "FORM-014":
                    MKT_Title.Text = "Trade Marketing";
                    MKT_SKU_BPCS_Code_L.Text = "ADVE Code:";
                    SetVisible(true, MKT_SKU_BPCS_Code, MKT_SKU_BPCS_Code_L, MKT_Plant, MKT_Plant_L, MKT_Sales_Org, MKT_Sales_Org_L, MKT_Distr_Channel, MKT_Distr_Channel_L
                                   , MKT_Description_EN, MKT_Description_EN_L, MKT_Description_ZH, MKT_Description_ZH_L, MKT_Base_Unit_Of_Measure, MKT_Base_Unit_Of_Measure_L
                                   , MKT_Marterial_Group, MKT_Marterial_Group_L, MKT_Division, MKT_Division_L, MKT_Lab_Office, MKT_Lab_Office_L, MKT_GenItemCatGroup, MKT_X_Plant_Matl, MKT_X_Plant_Matl_L
                                   , MKT_GenItemCatGroup_L, MKT_Min_dely_qty, MKT_Min_dely_qty_L, MKT_Min_order_qty, MKT_Min_order_qty_L, MKT_Delivering_plant
                                   , MKT_Delivering_plant_L, MKT_Delivery_unit, MKT_Delivery_unit_L, MKT_Order_unit, MKT_Order_unit_L, MKT_Volume_Rebate_Group
                                   , MKT_Volume_Rebate_Group_L, MKT_Easy_Order_Entry_Code, MKT_Easy_Order_Entry_Code_L, MKT_Profit_Center, MKT_Profit_Center_L);
                    break;
                case "FORM-067":
                    MKT_Title.Text = "HK";
                    if (TaskAPI.Process == "HK NPL Master Application")
                    {
                        MKT_Is_Generic_L.Text = "Is it need to create Generic Code";
                        SetVisible(true, MKT_Is_Generic_L, MKT_Is_Generic);
                    }
                    SetVisible(true, MKT_FINI_Code, MKT_Sales_Org, MKT_Distr_Channel, MKT_Description_EN, MKT_Description_ZH, MKT_Description_ZF, MKT_Base_Unit_Of_Measure
                                   , MKT_Division, MKT_Marterial_Group, MKT_Size_dimension, MKT_Product_Line_Code, MKT_Material_Group_4, MKT_Volume_Rebate_Group, MKT_Product_Group
                                   , MKT_Product_Hierarchy, MKT_Profit_Center, MKT_Lab_Office, MKT_Easy_Order_Entry_Code
                                   , MKT_FINI_Code_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Description_EN_L, MKT_Description_ZH_L, MKT_Description_ZF_L, MKT_Base_Unit_Of_Measure_L
                                   , MKT_Division_L, MKT_Marterial_Group_L, MKT_Size_dimension_L, MKT_Product_Line_Code_L, MKT_Material_Group_4_L, MKT_Volume_Rebate_Group_L, MKT_Product_Group_L
                                   , MKT_Product_Hierarchy_L, MKT_Profit_Center_L, MKT_Lab_Office_L, MKT_Easy_Order_Entry_Code_L);
                    break;
                case "FORM-015":
                    MKT_Title.Text = "Marketing";
                    MKT_SKU_BPCS_Code_L.Text = "Trade Code:";
                    SetVisible(true, this.MKT_SKU_BPCS_Code, MKT_SKU_BPCS_Code_L, MKT_Sales_Org_L, MKT_Sales_Org, MKT_Distr_Channel_L, MKT_Distr_Channel, MKT_Description_EN_L, MKT_Description_EN
                        , MKT_Description_ZH, MKT_Description_ZH_L, MKT_Base_Unit_Of_Measure, MKT_Base_Unit_Of_Measure_L, MKT_Marterial_Group, MKT_Marterial_Group_L, MKT_Division, MKT_Division_L
                        , MKT_Lab_Office, MKT_Lab_Office_L, MKT_Size_dimension, MKT_Size_dimension_L, MKT_Base_Unit_Of_Measure, MKT_Volume_Rebate_Group, MKT_Volume_Rebate_Group_L
                        , MKT_Profit_Center, MKT_Product_Group_L, MKT_Product_Group, MKT_Profit_Center_L, MKT_Profit_Center_L, MKT_Profit_Center, MKT_Product_Hierarchy, MKT_Product_Hierarchy_L);
                    break;
                case "FORM-T001":
                    MKT_SKU_BPCS_Code_L.Text = "ADVE Code(Old Material Code)";
                    SetVisible(true, MKT_SKU_BPCS_Code, MKT_SKU_BPCS_Code_L, MKT_Plant, MKT_Plant_L, MKT_Sales_Org, MKT_Sales_Org_L, MKT_Profit_Center, MKT_Profit_Center_L
                                   , MKT_Distr_Channel, MKT_Distr_Channel_L, MKT_Description_EN, MKT_Description_EN_L, MKT_Description_ZF, MKT_Description_ZF_L
                                   , MKT_Base_Unit_Of_Measure, MKT_Base_Unit_Of_Measure_L, MKT_Marterial_Group, MKT_Marterial_Group_L, MKT_Division, MKT_Division_L
                                   , MKT_Lab_Office, MKT_Lab_Office_L, MKT_GenItemCatGroup, MKT_GenItemCatGroup_L, MKT_Size_dimension, MKT_Size_dimension_L
                                   , MKT_Gross_Weight, MKT_Gross_Weight_L, MKT_Height, MKT_Height_L, MKT_Width, MKT_Width_L, MKT_Length, MKT_Length_L, MKT_Delivering_plant, MKT_Delivering_plant_L
                                   , MKT_Unit_of_Dimension, MKT_Unit_of_Dimension_L, MKT_Material_Group_4, MKT_Material_Group_4_L, MKT_Net_Weight, MKT_Net_Weight_L);
                    break;
                case "FORM-T009":
                    MKT_SKU_BPCS_Code_L.Text = "Trade Code(Old Material Code)";
                    //MKT_Product_Line_Code_L.Text = "Z_Product Cluster";
                    SetVisible(true, MKT_SKU_BPCS_Code, MKT_SKU_BPCS_Code_L, MKT_Sales_Org, MKT_Sales_Org_L, MKT_Distr_Channel, MKT_Distr_Channel_L
                                   , MKT_Description_EN, MKT_Description_EN_L, MKT_Description_ZF, MKT_Description_ZF_L, MKT_Net_Weight, MKT_Net_Weight_L
                                   , MKT_Base_Unit_Of_Measure, MKT_Base_Unit_Of_Measure_L, MKT_Marterial_Group, MKT_Marterial_Group_L, MKT_Delivering_plant, MKT_Delivering_plant_L
                                   , MKT_Division, MKT_Division_L, MKT_Lab_Office, MKT_Lab_Office_L, MKT_Gross_Weight, MKT_Gross_Weight_L, MKT_GenItemCatGroup, MKT_GenItemCatGroup_L
                                   , MKT_Net_Weight, MKT_Net_Weight_L, MKT_Volume, MKT_Volume_L, MKT_Size_dimension, MKT_Size_dimension_L, MKT_Product_Group, MKT_Product_Group_L
                                   , MKT_Product_Cluster, MKT_Product_Cluster_L, MKT_Length, MKT_Length_L, MKT_Width, MKT_Width_L, MKT_Height, MKT_Height_L, MKT_Unit_of_Dimension, MKT_Unit_of_Dimension_L
                                   , MKT_Easy_Order_Entry_Code, MKT_Easy_Order_Entry_Code_L, MKT_Material_Group_4, MKT_Material_Group_4_L, MKT_Profit_Center, MKT_Profit_Center_L
                                   , MKT_Product_Hierarchy, MKT_Product_Hierarchy_L, MKT_EAN_UPC, MKT_EAN_UPC_L, MKT_EAN_Category, MKT_EAN_Category_L
                                   , MKT_Unit_Of_Measure_X_2, MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_Y_2, MKT_Unit_Of_Measure_Bun_2);
                    SetVisible(true, MKT_Unit_Of_Measure_X_L, MKT_Unit_Of_Measure_AUN_L, MKT_Unit_Of_Measure_Y_L, MKT_Unit_Of_Measure_Bun_L);
                    break;
                case "FORM-T012":
                    MKT_SKU_BPCS_Code_L.Text = "Trade Code(Old Material Code)";
                    MKT_Product_Line_Code_L.Text = "Z_Product Cluster";
                    //MKT_Profit_Center_L.Text = "Profit Center";
                    SetVisible(true, MKT_SKU_BPCS_Code, MKT_SKU_BPCS_Code_L, MKT_Sales_Org, MKT_Sales_Org_L, MKT_Distr_Channel, MKT_Distr_Channel_L
                                   , MKT_Description_EN, MKT_Description_EN_L, MKT_Description_ZF, MKT_Description_ZF_L, MKT_Net_Weight, MKT_Net_Weight_L
                                   , MKT_Base_Unit_Of_Measure, MKT_Base_Unit_Of_Measure_L, MKT_Marterial_Group, MKT_Marterial_Group_L
                                   , MKT_Division, MKT_Division_L, MKT_Lab_Office, MKT_Lab_Office_L, MKT_Gross_Weight, MKT_Gross_Weight_L
                                   , MKT_Net_Weight, MKT_Net_Weight_L, MKT_Volume, MKT_Volume_L, MKT_Size_dimension, MKT_Size_dimension_L, MKT_Product_Group, MKT_Product_Group_L
                                   , MKT_Length, MKT_Length_L, MKT_Width, MKT_Width_L, MKT_Height, MKT_Height_L, MKT_Unit_of_Dimension, MKT_Unit_of_Dimension_L
                                   , MKT_GenItemCatGroup, MKT_GenItemCatGroup_L, MKT_Material_Group_4, MKT_Material_Group_4_L, MKT_Product_Hierarchy, MKT_Product_Hierarchy_L);
                    SetVisible(true, MKT_Unit_Of_Measure_L, MKT_Unit_Of_Measure_X_L, MKT_Unit_Of_Measure_AUN_L, MKT_Unit_Of_Measure_Y_L, MKT_Unit_Of_Measure_Bun_L);

                    SetVisible(true, MKT_Delivering_Plant_1_L, MKT_Item_Category_Group_1_L, MKT_Departure_country_L, MKT_Tax_category_L, MKT_Tax_classification_L, MKT_Acct_Assignment_Grp_L, MKT_Cash_Discount_L, MKT_Easy_Order_Entry_L);
                    SetVisible(true, MKT_Delivering_Plant_1, MKT_Item_Category_Group_1, MKT_Departure_country, MKT_Tax_category, MKT_Tax_classification, MKT_Acct_Assignment_Grp, MKT_Cash_Discount, MKT_Easy_Order_Entry);
                    SetVisible(true, MKT_Unit_Of_Measure_X_2, MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_Y_2, MKT_Unit_Of_Measure_Bun_2);

                    break;
                case "FORM-TW-010":
                    if (TaskAPI.Process == "TW NPL Application-PKG")
                    {
                        SetVisible(true, MKT_Attributes1_L, MKT_Attributes1, MKT_Attributes2_L, MKT_Attributes2);
                    }
                    MKT_Title.Text = "Technical";
                    MKT_FINI_Code_L.Text = "FINI  Code <br/>(Old Material Code)";
                    MKT_Description_ZH_L.Text = "Description2(ZF.):";
                    MKT_Tax_category.Text = "MWST";
                    MKT_Departure_country.Text = "TW";
                    MKT_Tax_classification.Text = "1";
                    MKT_Cash_Discount.SelectedValue = "N";
                    MKT_Acct_Assignment_Grp.SelectedValue = "01";
                    MKT_Delivering_Plant_1.Text = "KT2D";
                    MKT_Item_Category_Group_1.Text = "NORM";
                    MKT_Easy_Order_Entry.Text = "0";
                    SetVisible(true, MKT_Delivering_Plant_1_L, MKT_Item_Category_Group_1_L, MKT_Departure_country_L, MKT_Tax_category_L, MKT_Tax_classification_L, MKT_Acct_Assignment_Grp_L, MKT_Cash_Discount_L, MKT_Easy_Order_Entry_L);
                    SetVisible(true, MKT_Delivering_Plant_1, MKT_Item_Category_Group_1, MKT_Departure_country, MKT_Tax_category, MKT_Tax_classification, MKT_Acct_Assignment_Grp, MKT_Cash_Discount, MKT_Easy_Order_Entry);
                    SetVisible(true, MKT_Unit_Of_Measure_L, MKT_Unit_Of_Measure_X_L, MKT_Unit_Of_Measure_AUN_L, MKT_Unit_Of_Measure_Y_L, MKT_Unit_Of_Measure_Bun_L, MKT_Unit_Of_Measure_X, MKT_Unit_Of_Measure_AUN, MKT_Unit_Of_Measure_Y, MKT_Unit_Of_Measure_Bun, MKT_Unit_Of_Measure_X_1, MKT_Unit_Of_Measure_AUN_1
                       , MKT_Unit_Of_Measure_Y_1, MKT_Unit_Of_Measure_Bun_1, MKT_Unit_Of_Measure_X_2, MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_Y_2, MKT_Unit_Of_Measure_Bun_2, MKT_Gross_Weight, MKT_Gross_Weight_L, MKT_Net_Weight, MKT_Net_Weight_L, MKT_Volume, MKT_Volume_L);

                    SetVisible(true, MKT_FINI_Code, MKT_Lab_Office_L, MKT_FINI_Code_L, MKT_Sales_Org, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Distr_Channel, MKT_Description_EN_L, MKT_Description_EN, MKT_Description_ZH_L, MKT_Description_ZH
                        , MKT_Base_Unit_Of_Measure_L, MKT_Base_Unit_Of_Measure, MKT_Marterial_Group, MKT_Marterial_Group_L, MKT_Division_L, MKT_Division, MKT_Lab_Office, MKT_Size_dimension, MKT_Size_dimension_L
                        , MKT_Item_category_group, MKT_Item_category_group_L, MKT_Product_Group, MKT_Product_Group_L, MKT_Material_Group_4, MKT_Material_Group_4_L, MKT_Product_Hierarchy, MKT_Product_Hierarchy_L, MKT_Profit_Center, MKT_Profit_Center_L);
                    break;
                case "FORM-T006":
                    MKT_Title.Text = "Sales";
                    MKT_FINI_Code_L.Text = "FINI Code<br />(Old Material Code)";
                    SetVisible(true, MKT_Product_Cluster, MKT_Product_Cluster_L, MKT_Color_Code, MKT_Color_Code_L, MKT_Pack_Size_L, MKT_Pack_Size
                                   , MKT_FINI_Code, MKT_FINI_Code_L, MKT_Sales_Org_L, MKT_Sales_Org, MKT_Distr_Channel, MKT_Distr_Channel_L, MKT_Material_Attributes_1, MKT_Material_Attributes_1_L
                                   , MKT_Material_Attributes_2, MKT_Material_Attributes_2_L, MKT_Material_Attributes_3, MKT_Material_Attributes_3_L, MKT_Distr_Channel, MKT_Distr_Channel_L
                                   , MKT_Date_From_L, MKT_Min_dely_qty, MKT_Min_dely_qty_L, MKT_Min_order_qty, MKT_Min_order_qty_L, MKT_GenItemCatGroup, MKT_GenItemCatGroup_L
                                   , MKT_Description_EN, MKT_Description_EN_L, MKT_Description_ZF, MKT_Description_ZF_L, MKT_Base_Unit_Of_Measure, MKT_Base_Unit_Of_Measure_L
                                   , MKT_Marterial_Group, MKT_Marterial_Group_L, MKT_Division, MKT_Division_L, MKT_Lab_Office, MKT_Lab_Office_L, MKT_Product_Group, MKT_Product_Group_L
                                   , MKT_Material_Group_4, MKT_Material_Group_4_L, MKT_Easy_Order_Entry_Code, MKT_Easy_Order_Entry_Code_L, MKT_Product_Hierarchy, MKT_Product_Hierarchy_L, MKT_Profit_Center, MKT_Profit_Center_L
                                   , MKT_Gross_Weight, MKT_Gross_Weight_L, MKT_Net_Weight, MKT_Net_Weight_L, MKT_Volume, MKT_Volume_L, MKT_Size_dimension, MKT_Size_dimension_L, MKT_Dchain_spec_status, MKT_Dchain_spec_status_L
                                   , MKT_Date_From_L, MKT_Calendar1, MKT_Length, MKT_Length_L, MKT_Width, MKT_Width_L, MKT_Height, MKT_Height_L, MKT_Unit_of_Dimension, MKT_Unit_of_Dimension_L, MKT_Delivering_plant, MKT_Delivering_plant_L, MKT_Item_category_group, MKT_Item_category_group_L);
                    break;
                case "FORM-T010":
                    MKT_Title.Text = "Technical";
                    MKT_Description_ZF_L.Text = "Description2(ZF.):";
                    SetVisible(true, MKT_FINI_Code, MKT_FINI_Code_L, MKT_Sales_Org_L, MKT_Sales_Org, MKT_Distr_Channel, MKT_Distr_Channel_L
                                   , MKT_Distr_Channel, MKT_Distr_Channel_L, MKT_GenItemCatGroup, MKT_GenItemCatGroup_L, MKT_Delivering_plant, MKT_Delivering_plant_L
                                   , MKT_Description_EN, MKT_Description_EN_L, MKT_Description_ZF, MKT_Description_ZF_L, MKT_Base_Unit_Of_Measure, MKT_Base_Unit_Of_Measure_L
                                   , MKT_Marterial_Group, MKT_Marterial_Group_L, MKT_Division, MKT_Division_L, MKT_Lab_Office, MKT_Lab_Office_L, MKT_Product_Group, MKT_Product_Group_L
                                   , MKT_Material_Group_4, MKT_Material_Group_4_L, MKT_Product_Hierarchy, MKT_Product_Hierarchy_L, MKT_Profit_Center, MKT_Profit_Center_L
                                   , MKT_Gross_Weight, MKT_Gross_Weight_L, MKT_Net_Weight, MKT_Net_Weight_L, MKT_Volume, MKT_Volume_L, MKT_Size_dimension, MKT_Size_dimension_L
                                   , MKT_Item_category_group, MKT_Item_category_group_L, MKT_Easy_Order_Entry_Code, MKT_Easy_Order_Entry_Code_L
                                   , MKT_Unit_Of_Measure_X_L, MKT_Unit_Of_Measure_AUN_L, MKT_Unit_Of_Measure_Y_L, MKT_Unit_Of_Measure_L
                                   , MKT_Unit_Of_Measure_X, MKT_Unit_Of_Measure_AUN, MKT_Unit_Of_Measure_Y, MKT_Unit_Of_Measure_Bun, MKT_Unit_Of_Measure_Bun_L
                                   , MKT_Unit_Of_Measure_X_1, MKT_Unit_Of_Measure_AUN_1, MKT_Unit_Of_Measure_Y_1, MKT_Unit_Of_Measure_Bun_1
                                   , MKT_Unit_Of_Measure_X_2, MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_Y_2, MKT_Unit_Of_Measure_Bun_2);
                    break;
                case "FORM-TW-007":
                    MKT_FINI_Code_L.Text = "FINI  Code(Old Material Code)";
                    MKT_Description_ZH_L.Text = "Description2(ZF.):";
                    //SetForeColor(Color.Black, MKT_Minimun_delivery_quantity_L, MKT_Minimun_order_quantity_L);
                    SetVisible(true, MKT_Minimun_delivery_quantity_L, MKT_Minimun_delivery_quantity, MKT_Minimun_order_quantity_L, MKT_Minimun_order_quantity, MKT_Delivering_Plant_1_L, MKT_Departure_country_L, MKT_Tax_category_L, MKT_Tax_classification_L, MKT_Acct_Assignment_Grp_L, MKT_Cash_Discount_L, MKT_Easy_Order_Entry_L);
                    SetVisible(true, MKT_Delivering_Plant_1, MKT_Departure_country, MKT_Tax_category, MKT_Tax_classification, MKT_Acct_Assignment_Grp, MKT_Cash_Discount, MKT_Easy_Order_Entry);
                    SetVisible(true, MKT_Item_category_group_L, MKT_Item_category_group, MKT_Dchain_spec_status_L, MKT_Dchain_spec_status, MKT_FINI_Code, MKT_Lab_Office_L, MKT_FINI_Code_L, MKT_Sales_Org, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Distr_Channel, MKT_Description_EN_L, MKT_Description_EN, MKT_Description_ZH_L, MKT_Description_ZH
                        , MKT_Base_Unit_Of_Measure_L, MKT_Base_Unit_Of_Measure, MKT_Marterial_Group, MKT_Marterial_Group_L, MKT_Division_L, MKT_Division, MKT_Lab_Office, MKT_Size_dimension, MKT_Size_dimension_L, MKT_GenItemCatGroup, MKT_GenItemCatGroup_L, MKT_Material_Attributes_1, MKT_Material_Attributes_1_L, MKT_Material_Attributes_2, MKT_Material_Attributes_2_L, MKT_Material_Attributes_3, MKT_Material_Attributes_3_L
                        , MKT_Dchain_spec_status_L, MKT_Dchain_spec_status, MKT_Date_From_L, MKT_Calendar1, MKT_EAN_UPC_L, MKT_EAN_UPC, MKT_EAN_Category_L, MKT_EAN_Category, MKT_Length_L, MKT_Length, MKT_Width_L, MKT_Width, MKT_Height_L, MKT_Height, MKT_Unit_of_Dimension_L, MKT_Unit_of_Dimension, MKT_Product_Group_L, MKT_Product_Group, MKT_Material_Group_4_L, MKT_Material_Group_4, MKT_Product_Hierarchy_L, MKT_Product_Hierarchy, MKT_Profit_Center_L, MKT_Profit_Center);
                    SetVisible(true, MKT_Product_Cluster_L, MKT_Product_Cluster, MKT_Denominator_1_L, MKT_Denominator_1, MKT_Numerator_1_L, MKT_Numerator_1, MKT_Denominator_2_L, MKT_Denominator_2, MKT_Numerator_2_L, MKT_Numerator_2, MKT_Gross_Weight, MKT_Gross_Weight_L, MKT_Net_Weight, MKT_Net_Weight_L, MKT_Volume, MKT_Volume_L);
                    SetVisible(true, MKT_Unit_Of_Measure_L, MKT_Unit_Of_Measure_X_L, MKT_Unit_Of_Measure_AUN_L, MKT_Unit_Of_Measure_Y_L, MKT_Unit_Of_Measure_Bun_L, MKT_Unit_Of_Measure_X_2, MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_Y_2, MKT_Unit_Of_Measure_Bun_2);
                    SetVisible(true, MKT_Unit_Of_Measure_X_1, MKT_Unit_Of_Measure_AUN_1, MKT_Unit_Of_Measure_Y_1, MKT_Unit_Of_Measure_Bun_1, MKT_Unit_Of_Measure_X, MKT_Unit_Of_Measure_AUN, MKT_Unit_Of_Measure_Y, MKT_Unit_Of_Measure_Bun);
                    break;
                case "FORM-T018":
                    MKT_Title.Text = "Purchasing/Technical";
                    MKT_Easy_Order_Entry_Code_L.Text = "Easy Order entry number";
                    SetVisible(true, MKT_A_Coat, MKT_A_Coat_L, MKT_Type, MKT_Type_L, MKT_Sales_Org, MKT_Sales_Org_L, MKT_Distr_Channel, MKT_Distr_Channel_L, MKT_Product_Hierarchy, MKT_Product_Hierarchy_L, MKT_Departure_country, MKT_Departure_country_L
                                   , MKT_Tax_category, MKT_Tax_category_L, MKT_Tax_classification, MKT_Tax_classification_L, MKT_Cash_Discount, MKT_Cash_Discount_L, MKT_Acct_Assignment_Grp, MKT_Acct_Assignment_Grp_L
                                   , MKT_Delivering_plant, MKT_Delivering_plant_L, MKT_Item_category_group, MKT_Item_category_group_L, MKT_Easy_Order_Entry_Code, MKT_Easy_Order_Entry_Code_L);
                    break;
                case "FORM-T002":
                    MKT_SKU_BPCS_Code_L.Text = "SERV Code(Old Material Code)";
                    MKT_Description_ZF_L.Text = "Description2(ZF.):";
                    SetVisible(true, MKT_Sales_Org, MKT_Sales_Org_L, MKT_Distr_Channel, MKT_Distr_Channel_L, MKT_Plant, MKT_Plant_L, MKT_SKU_BPCS_Code, MKT_SKU_BPCS_Code_L, MKT_Description_EN, MKT_Description_EN_L, MKT_Description_ZF, MKT_Description_ZF_L
                                   , MKT_Base_Unit_Of_Measure, MKT_Base_Unit_Of_Measure_L, MKT_Marterial_Group, MKT_Marterial_Group_L, MKT_Division, MKT_Division_L, MKT_Lab_Office, MKT_Lab_Office_L, MKT_Length, MKT_Length_L, MKT_Width, MKT_Width_L
                                   , MKT_Height, MKT_Height_L, MKT_Unit_of_Dimension, MKT_Unit_of_Dimension_L, MKT_GenItemCatGroup, MKT_GenItemCatGroup_L, MKT_Product_Group, MKT_Product_Group_L
                                   , MKT_Tax_classification, MKT_Tax_classification_L, MKT_Delivering_plant, MKT_Delivering_plant_L, MKT_Cash_Discount, MKT_Cash_Discount_L, MKT_Acct_Assignment_Grp, MKT_Acct_Assignment_Grp_L
                                   , MKT_Product_Hierarchy, MKT_Product_Hierarchy_L, MKT_Material_Group_4, MKT_Material_Group_4_L, MKT_Easy_Order_Entry_Code, MKT_Easy_Order_Entry_Code_L, MKT_Profit_Center, MKT_Profit_Center_L, MKT_Material_Attributes_1, MKT_Material_Attributes_1_L);
                    break;
            }

            SetToolTip();
            #endregion
        }

        private void InitShowStatus()
        {
            EventArgs e = new EventArgs();
            if (MKT_Description_EN_4.Text.Length + MKT_Description_ZH_4.Text.Length > 0)
            {
                Anthem.TextBox sender = new Anthem.TextBox();
                sender.ID = "MKT_Description_EN_4";
                MKT_Description2_TextChanged(sender, e);
            }
            if (MKT_Description_ZH_3.SelectedIndex > 0 || MKT_Description_EN_3.SelectedIndex > 0)
            {

                Anthem.DropDownList sender = new Anthem.DropDownList();
                sender.ID = "MKT_Description_EN_3";
                MKT_Description_SelectedIndexChanged(sender, e);
            }
        }
        #endregion

        #region 方法 Distribute,Collect(分发、收集值)
        public void Distribute(mdc_Material mt)
        {
            //如果当前 Tabs 是隐藏的情况，退出
            if (!IsUsed)
            {
                return;
            }

            if (FORM == "FORM-012" || FORM == "FORM-074")
            {
                PMDC pcmd = (Page as PMDC);
                if (pcmd != null)
                {
                    m_Subline sl = (m_Subline.subline == pcmd.TabMaterial1.SubLine).ListFirst<m_Subline>();
                    if (sl != null)
                    {
                        mt.MKT_Product_Line_Code = sl.Product_Group;
                        mt.MKT_Product_Group = sl.Product_Group;
                        mt.MKT_Profit_Center = sl.Profit_Center;
                        mt.MKT_Description_EN = sl.Description_EN;
                        mt.MKT_Description_ZH = sl.Description_ZH;
                        mt.MKT_Size_dimension = sl.Size_dimension;
                        mt.MKT_Product_Line_Code = sl.Product_Line_Code;
                        mt.MKT_Material_Group_4 = sl.Material_Group_4;
                        mt.MKT_Volume_Rebate_Group = sl.Volume_Rebate_Group;
                        mt.MKT_Product_Group = sl.Product_Group;
                        mt.MKT_Product_Hierarchy = sl.Product_Hierarchy;
                        mt.MKT_Lab_Office = sl.Lab_Office;
                    }
                }
            }
            //if (FORM == "FORM-T006" && TaskAPI.Process == "TW MTO Application-DECO")
            //{
            //    PMDC pcmd = (Page as PMDC);
            //    if (pcmd != null)
            //    {
            //        m_TW_MTO_Template te = (m_TW_MTO_Template.z_Product_Cluster == pcmd.TabMaterial1.Marketing1.MKT_Product_Cluster.Text).ListFirst<m_TW_MTO_Template>();
            //        if (te !=null)
            //        {
            //            mt.MKT_Description_EN = te.Description_EN;
            //            mt.MKT_Description_ZF = te.Description_ZF;
            //            mt.MKT_Marterial_Group = te.Material_Group;
            //            mt.MKT_Lab_Office = te.Lab_office;
            //            mt.MKT_Product_Group = te.Product_group;
            //            mt.MKT_Material_Group_4 = te.Material_group_4;
            //            mt.MKT_Product_Hierarchy = te.Product_Hierarchy;
            //            //mt.MKT_Profit_Center = te.Profit_Centre;
            //            mt.MKT_Material_Attributes_1 = te.Material_Attributes_1;
            //            mt.MKT_Gross_Weight = te.Gross_Weight;
            //            mt.MKT_Net_Weight = te.Net_Weight;
            //            mt.MKT_Length = te.Length;
            //            mt.MKT_Width = te.Width;
            //            mt.MKT_Height = te.Height;
            //            mt.MKT_Pack_Size = te.Volume;
            //            mt.MKT_Volume = te.Volume;

            //        }
            //    }
            //}
            if (TaskAPI.Process == "MTO Base Code Application")
            {
                if (((Parent as TabMaterial).Status.FORM == "FORM-012" && (Parent as TabMaterial).Status.Category == "FINI" && ((Parent as TabMaterial).Status.KeyWord == "MM2" || (Parent as TabMaterial).Status.KeyWord == "MM3")))
                {

                    if ((Page as PMDC).TabMaterial1.Technical1.TEC_Relabel.SelectedValue == "Y")
                    {
                        mt.MKT_FINI_Code = (Page as PMDC).TabMaterial1.Technical1.TEC_MTO_Code_SEFI_Code.Text.Replace('M', 'R') + " " + (Page as PMDC).TabMaterial1.Technical1.TEC_Pack_Size.Text;
                    }
                    else
                    {
                        mt.MKT_FINI_Code = (Page as PMDC).TabMaterial1.Technical1.TEC_MTO_Code_SEFI_Code.Text + " " + (Page as PMDC).TabMaterial1.Technical1.TEC_Pack_Size.Text;
                    }

                }
            }
            if (TaskAPI.Process == "HK-MTO Base Code Application")
            {
                if (((Parent as TabMaterial).Status.FORM == "FORM-067") && (Parent as TabMaterial).Status.Category == "FINI" && ((Parent as TabMaterial).Status.KeyWord == "MM2" || (Parent as TabMaterial).Status.KeyWord == "MM3" || (Parent as TabMaterial).Status.KeyWord == "MM4"))
                {
                    mt.MKT_FINI_Code = (Page as PMDC).TabMaterial1.Technical1.TEC_MTO_Code_SEFI_Code.Text + " " + (Page as PMDC).TabMaterial1.Technical1.TEC_Pack_Size.Text;

                }
            }
            if ((Parent as TabMaterial).Status.FORM == "FORM-031-2" || (Parent as TabMaterial).Status.Category == "FINI" && ((Parent as TabMaterial).Status.KeyWord == "MM2") && TaskAPI.Process != "MTO Template Data Collection")
            {
                mt.MKT_FINI_Code = (Page as PMDC).TabMaterial1.Marketing1.MKT_FINI_Code.Text;
            }


            MKT_FINI_Code.Text = mt.MKT_FINI_Code;
            MKT_SKU_BPCS_Code.Text = mt.MKT_SKU_BPCS_Code;
            //MKT_Volume_Rebate_Group.SelectedValue= mt.MKT_Volume_Rebate_Group;
            SetDropDownListValue(MKT_Volume_Rebate_Group, mt.MKT_Volume_Rebate_Group);

            //MKT_Material_Group_4.Text           = mt.MKT_Material_Group_4;
            SetDropDownListValue(MKT_Material_Group_4, mt.MKT_Material_Group_4);

            MKT_Product_Hierarchy.Text = mt.MKT_Product_Hierarchy;
            //MKT_Profit_Center.Text              = mt.MKT_Profit_Center;
            SetDropDownListValue(MKT_Profit_Center, mt.MKT_Profit_Center);

            MKT_Product_Line_Code.Text = mt.MKT_Product_Line_Code;
            MKT_Product_Group.Text = mt.MKT_Product_Group;
            //MKT_IsSale.SelectedValue            = mt.MKT_IsSale;
            SetDropDownListValue(MKT_IsSale, mt.MKT_IsSale);

            MKT_Base_Unit_Of_Measure.Text = mt.MKT_Base_Unit_Of_Measure;
            MKT_Division.Text = mt.MKT_Division;
            MKT_Description_EN.Text = mt.MKT_Description_EN;
            MKT_Description_ZH.Text = mt.MKT_Description_ZH;
            MKT_Description_ZF.Text = mt.MKT_Description_ZF;
            //MKT_Lab_Office.SelectedValue        = mt.MKT_Lab_Office;
            SetDropDownListValue(MKT_Lab_Office, mt.MKT_Lab_Office);

            MKT_Easy_Order_Entry_Code.Text = mt.MKT_Easy_Order_Entry_Code;
            MKT_Marterial_Group.Text = mt.MKT_Marterial_Group;
            MKT_GenItemCatGroup.Text = mt.MKT_GenItemCatGroup;
            MKT_X_Plant_Matl.Text = mt.MKT_X_Plant_Matl;

            MKT_Description_EN_1.Text = mt.MKT_Description_EN_1;
            MKT_Description_EN_2.Text = mt.MKT_Description_EN_2;
            //MKT_Description_EN_3.SelectedValue  = mt.MKT_Description_EN_3;
            SetDropDownListValue(MKT_Description_EN_3, mt.MKT_Description_EN_3);

            MKT_Description_EN_4.Text = mt.MKT_Description_EN_4;
            MKT_Description_ZH_1.Text = mt.MKT_Description_ZH_1;
            MKT_Description_ZH_2.Text = mt.MKT_Description_ZH_2;
            //MKT_Description_ZH_3.SelectedValue  = mt.MKT_Description_ZH_3;
            SetDropDownListValue(MKT_Description_ZH_3, mt.MKT_Description_ZH_3);

            MKT_Description_ZH_4.Text = mt.MKT_Description_ZH_4;
            MKT_Size_dimension.Text = mt.MKT_Size_dimension;
            MKT_FINI_Code.Text = mt.MKT_FINI_Code;
            //MKT_Is_Generic.SelectedValue        = mt.MKT_Is_Generic;
            SetDropDownListValue(MKT_Is_Generic, mt.MKT_Is_Generic);

            MKT_Type_Select.Text = mt.MKT_Type_Select;
            MKT_Min_dely_qty.Text = mt.MKT_Min_dely_qty;
            MKT_Min_order_qty.Text = mt.MKT_Min_order_qty;
            MKT_Delivery_unit.Text = mt.MKT_Delivery_unit;
            MKT_Delivering_plant.Text = mt.MKT_Delivering_plant;
            MKT_Order_unit.Text = mt.MKT_Order_unit;


            MKT_Plant.Text = mt.MKT_Plant;
            MKT_Gross_Weight.Text = mt.MKT_Gross_Weight;
            MKT_Length.Text = mt.MKT_Length;
            MKT_Width.Text = mt.MKT_Width;
            MKT_Height.Text = mt.MKT_Height;
            MKT_Unit_of_Dimension.Text = mt.MKT_Unit_of_Dimension;
            MKT_Net_Weight.Text = mt.MKT_Net_Weight;
            MKT_Volume.Text = mt.MKT_Volume;
            MKT_EAN_UPC.Text = mt.MKT_EAN_UPC;
            MKT_EAN_Category.Text = mt.MKT_EAN_Category;
            MKT_Material_Attributes_1.Text = mt.MKT_Material_Attributes_1;
            MKT_Material_Attributes_2.Text = mt.MKT_Material_Attributes_2;
            MKT_Material_Attributes_3.Text = mt.MKT_Material_Attributes_3;
            MKT_Dchain_spec_status.Text = mt.MKT_Dchain_spec_status;
            MKT_Calendar1.Text = mt.MKT_Calendar1;
            MKT_Color_Code.Text = mt.MKT_Color_Code;
            MKT_Pack_Size.Text = mt.MKT_Pack_Size;
            MKT_Product_Cluster.Text = mt.MKT_Product_Cluster;

            MKT_Denominator_1.Text = mt.MKT_Denominator_1;
            MKT_Denominator_2.Text = mt.MKT_Denominator_2;
            MKT_Numerator_1.Text = mt.MKT_Numerator_1;
            MKT_Numerator_2.Text = mt.MKT_Numerator_2;


            MKT_Unit_Of_Measure_X.Text = mt.MKT_Unit_Of_Measure_X;
            MKT_Unit_Of_Measure_X_1.Text = mt.MKT_Unit_Of_Measure_X_1;
            MKT_Unit_Of_Measure_X_2.Text = mt.MKT_Unit_Of_Measure_X_2;
            MKT_Unit_Of_Measure_AUN.SelectedValue = mt.MKT_Unit_Of_Measure_AUN;
            MKT_Unit_Of_Measure_AUN_1.SelectedValue = mt.MKT_Unit_Of_Measure_AUN_1;
            MKT_Unit_Of_Measure_AUN_2.SelectedValue = mt.MKT_Unit_Of_Measure_AUN_2;
            MKT_Unit_Of_Measure_Y.Text = mt.MKT_Unit_Of_Measure_Y;
            MKT_Unit_Of_Measure_Y_1.Text = mt.MKT_Unit_Of_Measure_Y_1;
            MKT_Unit_Of_Measure_Y_2.Text = mt.MKT_Unit_Of_Measure_Y_2;
            MKT_Unit_Of_Measure_Bun.SelectedValue = mt.MKT_Unit_Of_Measure_Bun;
            MKT_Unit_Of_Measure_Bun_1.SelectedValue = mt.MKT_Unit_Of_Measure_Bun_1;
            MKT_Unit_Of_Measure_Bun_2.SelectedValue = mt.MKT_Unit_Of_Measure_Bun_2;
            MKT_Minimun_order_quantity.Text = mt.MKT_Minimun_order_quantity;
            MKT_Minimun_delivery_quantity.Text = mt.MKT_Minimun_delivery_quantity;

            MKT_Easy_Order_Entry.Text = mt.MKT_FINI_Code;
            //MKT_Easy_Order_Entry.Text = mt.MKT_Easy_Order_Entry_Code;
            SetDropDownListValue(MKT_Acct_Assignment_Grp, mt.MKT_Acct_Assignment_Grp);

            SetDropDownListValue(MKT_Item_category_group, mt.MKT_Item_category_group);
            MKT_MTO_OR_NPL.Items.Add(new ListItem(mt.MKT_MTO_OR_NPL, mt.MKT_MTO_OR_NPL));
            MKT_MTO_OR_NPL.SelectedValue = mt.MKT_MTO_OR_NPL;

            MKT_Issdate.Text = mt.MKT_Issdate;
            MKT_Exemption.Text = mt.MKT_Exemption;
            MKT_A_Coat.Text = mt.MKT_A_Coat;
            MKT_Type.SelectedValue = mt.MKT_Type;

            //Tang Bin 添加新字段
            MKT_Attributes1.SelectedValue = mt.MKT_TW_Attributes1;
            MKT_Attributes2.SelectedValue = mt.MKT_TW_Attributes2;
            MKT_Unit_Of_Measure_X_2.Text = mt.MKT_Unit_Of_Measure_X_2;
            MKT_Unit_Of_Measure_AUN_2.SelectedValue = mt.MKT_Unit_Of_Measure_AUN_2;
            MKT_Unit_Of_Measure_Y_2.Text = mt.MKT_Unit_Of_Measure_Y_2;
            MKT_Unit_Of_Measure_Bun_2.Text = mt.MKT_Unit_Of_Measure_Bun_2;
            MKT_Product_Line_Code1.Text = mt.MKT_Product_Line_Code1;


            InitShowStatus();
            if (MKT_Sales_Org.Items.Count > 0)
            {
                string[] sos = (string.IsNullOrEmpty(mt.MKT_Sales_Org) ? "" : mt.MKT_Sales_Org).Split(',');
                foreach (ListItem li in MKT_Sales_Org.Items)
                {
                    for (int i = 0; i <= sos.GetUpperBound(0); i++)
                    {
                        if (sos[i].Trim().ToLower() == li.Value.Trim().ToLower())
                        {
                            li.Selected = true;
                            break;
                        }
                    }
                }
            }

            if (MKT_Distr_Channel.Items.Count > 0)
            {
                string[] dcs = (string.IsNullOrEmpty(mt.MKT_Distr_Channel) ? "" : mt.MKT_Distr_Channel).Split(',');
                foreach (ListItem li in MKT_Distr_Channel.Items)
                {
                    for (int i = 0; i <= dcs.GetUpperBound(0); i++)
                    {
                        if (dcs[i] == li.Value)
                        {
                            li.Selected = true;
                            break;
                        }
                    }
                }
            }

        }
        #region 方法 SetDropDownListValue
        private void SetDropDownListValue(Anthem.DropDownList drpT, object o)
        {
            try
            {
                //魏军为了修改下拉框的enable属性而改。

                if ((!TaskAPI.IsBeginStep && TaskAPI.Step != "Marketing" && TaskAPI.Step != "Marketing Add Data" && TaskAPI.Step != "HK Marketing") || !TaskAPI.IsAllowSubmit)
                {

                    drpT.SelectedValue = o.ToString();
                    string item = drpT.SelectedItem.Text;
                    drpT.Items.Clear();
                    drpT.Items.Add(new ListItem(item, o.ToString()));
                    drpT.SelectedValue = o.ToString();


                }
                else
                {
                    if (drpT.Items.FindByValue(o.ToString().Trim()) != null)
                    {
                        drpT.SelectedValue = o.ToString();
                        return;
                    }
                    else
                    {
                        string item = drpT.SelectedItem.Text;
                        drpT.Items.Add(new ListItem(item, o.ToString()));
                        drpT.SelectedValue = o.ToString();
                    }

                }

            }
            catch (Exception)
            {
            }
        }
        #endregion
        public void Collect(ref mdc_Material mt)
        {
            //如果当前 Tabs 是隐藏的情况，退出
            if (!IsUsed)
            {
                return;
            }

            mt.MKT_FINI_Code = MKT_FINI_Code.Text;
            mt.MKT_SKU_BPCS_Code = MKT_SKU_BPCS_Code.Text;
            mt.MKT_Sales_Org = "";
            foreach (ListItem li in MKT_Sales_Org.Items)
            {
                if (li.Selected)
                {
                    mt.MKT_Sales_Org += li.Value + ",";
                }
            }

            mt.MKT_Distr_Channel = "";
            foreach (ListItem li in MKT_Distr_Channel.Items)
            {
                if (li.Selected)
                {
                    mt.MKT_Distr_Channel += li.Value + ",";
                }
            }
            mt.MKT_Volume_Rebate_Group = MKT_Volume_Rebate_Group.SelectedValue;
            mt.MKT_Material_Group_4 = MKT_Material_Group_4.SelectedValue;
            mt.MKT_Product_Hierarchy = MKT_Product_Hierarchy.Text;
            mt.MKT_Profit_Center = MKT_Profit_Center.SelectedValue;
            mt.MKT_Product_Line_Code = MKT_Product_Line_Code.Text;
            mt.MKT_Product_Group = MKT_Product_Group.Text;
            mt.MKT_IsSale = MKT_IsSale.SelectedValue;
            mt.MKT_Base_Unit_Of_Measure = MKT_Base_Unit_Of_Measure.Text;
            mt.MKT_Division = MKT_Division.Text;
            mt.MKT_Description_EN = MKT_Description_EN.Text;
            mt.MKT_Description_ZH = MKT_Description_ZH.Text;
            mt.MKT_Description_ZF = MKT_Description_ZF.Text;
            mt.MKT_Lab_Office = MKT_Lab_Office.SelectedValue;
            mt.MKT_Easy_Order_Entry_Code = MKT_Easy_Order_Entry_Code.Text;
            mt.MKT_Marterial_Group = MKT_Marterial_Group.Text;
            mt.MKT_GenItemCatGroup = MKT_GenItemCatGroup.Text;
            mt.MKT_X_Plant_Matl = MKT_X_Plant_Matl.Text;
            mt.MKT_Description_EN_1 = MKT_Description_EN_1.Text;
            mt.MKT_Description_EN_2 = MKT_Description_EN_2.Text;
            mt.MKT_Description_EN_3 = MKT_Description_EN_3.SelectedValue;
            mt.MKT_Description_EN_4 = MKT_Description_EN_4.Text;
            mt.MKT_Description_ZH_1 = MKT_Description_ZH_1.Text;
            mt.MKT_Description_ZH_2 = MKT_Description_ZH_2.Text;
            mt.MKT_Description_ZH_3 = MKT_Description_ZH_3.SelectedValue;
            mt.MKT_Description_ZH_4 = MKT_Description_ZH_4.Text;
            mt.MKT_Size_dimension = MKT_Size_dimension.Text;
            mt.MKT_Type_Select = MKT_Type_Select.Text;
            mt.MKT_Is_Generic = MKT_Is_Generic.SelectedValue;
            mt.MKT_Min_dely_qty = MKT_Min_dely_qty.Text;
            mt.MKT_Min_order_qty = MKT_Min_order_qty.Text;
            mt.MKT_Delivery_unit = MKT_Delivery_unit.Text;
            mt.MKT_Delivering_plant = MKT_Delivering_plant.Text;
            mt.MKT_Order_unit = MKT_Order_unit.Text;

            mt.MKT_Plant = MKT_Plant.Text;
            mt.MKT_Gross_Weight = MKT_Gross_Weight.Text;
            mt.MKT_Height = MKT_Height.Text;
            mt.MKT_Width = MKT_Width.Text;
            mt.MKT_Length = MKT_Length.Text;
            mt.MKT_Unit_of_Dimension = MKT_Unit_of_Dimension.Text;
            mt.MKT_Net_Weight = MKT_Net_Weight.Text;
            mt.MKT_Volume = MKT_Volume.Text;
            mt.MKT_EAN_Category = MKT_EAN_Category.Text;
            mt.MKT_EAN_UPC = MKT_EAN_UPC.Text;
            mt.MKT_MTO_OR_NPL = MKT_MTO_OR_NPL.SelectedValue;
            mt.MKT_Material_Attributes_1 = MKT_Material_Attributes_1.Text;
            mt.MKT_Material_Attributes_2 = MKT_Material_Attributes_2.Text;
            mt.MKT_Material_Attributes_3 = MKT_Material_Attributes_3.Text;
            mt.MKT_Dchain_spec_status = MKT_Dchain_spec_status.Text;
            mt.MKT_Calendar1 = MKT_Calendar1.Text;
            mt.MKT_Color_Code = MKT_Color_Code.Text;
            mt.MKT_Pack_Size = MKT_Pack_Size.Text;
            mt.MKT_Item_category_group = MKT_Item_category_group.SelectedValue;


            mt.MKT_Product_Cluster = MKT_Product_Cluster.Text;

            mt.MKT_Denominator_1 = MKT_Denominator_1.Text;
            mt.MKT_Denominator_2 = MKT_Denominator_2.Text;
            mt.MKT_Numerator_1 = MKT_Numerator_1.Text;
            mt.MKT_Numerator_2 = MKT_Numerator_2.Text;

            mt.MKT_Unit_Of_Measure_X = MKT_Unit_Of_Measure_X.Text;
            mt.MKT_Unit_Of_Measure_X_1 = MKT_Unit_Of_Measure_X_1.Text;
            mt.MKT_Unit_Of_Measure_X_2 = MKT_Unit_Of_Measure_X_2.Text;
            mt.MKT_Unit_Of_Measure_AUN = MKT_Unit_Of_Measure_AUN.SelectedValue;
            mt.MKT_Unit_Of_Measure_AUN_1 = MKT_Unit_Of_Measure_AUN_1.SelectedValue;
            mt.MKT_Unit_Of_Measure_AUN_2 = MKT_Unit_Of_Measure_AUN_2.SelectedValue;
            mt.MKT_Unit_Of_Measure_Y = MKT_Unit_Of_Measure_Y.Text;
            mt.MKT_Unit_Of_Measure_Y_1 = MKT_Unit_Of_Measure_Y_1.Text;
            mt.MKT_Unit_Of_Measure_Y_2 = MKT_Unit_Of_Measure_Y_2.Text;
            mt.MKT_Unit_Of_Measure_Bun = MKT_Unit_Of_Measure_Bun.SelectedValue;
            mt.MKT_Unit_Of_Measure_Bun_1 = MKT_Unit_Of_Measure_Bun_1.SelectedValue;
            mt.MKT_Unit_Of_Measure_Bun_2 = MKT_Unit_Of_Measure_Bun_2.SelectedValue;
            mt.MKT_Minimun_delivery_quantity = MKT_Minimun_delivery_quantity.Text;
            mt.MKT_Minimun_order_quantity = MKT_Minimun_order_quantity.Text;

            mt.MKT_Acct_Assignment_Grp = MKT_Acct_Assignment_Grp.SelectedValue;

            mt.MKT_Exemption = MKT_Exemption.Text;
            mt.MKT_Issdate = MKT_Issdate.Text;
            mt.MKT_A_Coat = MKT_A_Coat.Text;
            mt.MKT_Type = MKT_Type.SelectedValue;

            //Tang Bin 新添加字段
            mt.MKT_TW_Attributes1 = MKT_Attributes1.SelectedValue;
            mt.MKT_TW_Attributes2 = MKT_Attributes2.SelectedValue;
            mt.MKT_Product_Line_Code1 = MKT_Product_Line_Code1.Text;
            //mt.MKT_Unit_Of_Measure_X_2 = MKT_Unit_Of_Measure_X_2.Text;
            //mt.MKT_Unit_Of_Measure_AUN_2 = MKT_Unit_Of_Measure_AUN_2.SelectedValue;
            //mt.MKT_Unit_Of_Measure_Y_2 = MKT_Unit_Of_Measure_Y_2.Text;
            //mt.MKT_Unit_Of_Measure_Bun_2 = MKT_Unit_Of_Measure_Bun_2.Text;

        }
        #endregion

        #region 方法 SetDefaultValue(设置默认值, 并禁用输入)
        public void SetDefaultValue()
        {
            MKT_Issdate.Text = DateTime.Now.ToString("yyyy-MM-dd");
            switch (Category)
            {
                case "PACK":
                    MKT_Base_Unit_Of_Measure.Text = "PC";
                    MKT_Division.Text = "10";
                    MKT_GenItemCatGroup.Text = "NORM";
                    SetEnable(false, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_GenItemCatGroup);
                    SetForeColor(Color.Orange, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_GenItemCatGroup_L);
                    if (FORM == "FORM-043")
                    {
                        MKT_Profit_Center.SelectedValue = "89";
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        MKT_Division.Text = "10";
                        MKT_GenItemCatGroup.Text = "NORM";
                        SetEnable(false, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_GenItemCatGroup, MKT_Profit_Center);
                        SetForeColor(Color.Orange, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_GenItemCatGroup_L, MKT_Profit_Center_L);
                    }
                    break;
                case "SEFI":
                    MKT_Base_Unit_Of_Measure.Text = "KG";
                    MKT_Division.Text = "10";
                    MKT_Marterial_Group.Text = "H, Semi Finished and Intermediates";
                    SetEnable(false, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Marterial_Group);
                    SetForeColor(Color.Orange, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Marterial_Group_L);
                    break;
                case "FINI":
                case "TRADE":
                    if (FORM != "FORM-014")
                    {
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        SetEnable(false, MKT_Base_Unit_Of_Measure);
                        SetForeColor(Color.Orange, MKT_Base_Unit_Of_Measure_L);
                        MKT_Marterial_Group.Text = "IFM, Finished Material";
                    }
                    MKT_GenItemCatGroup.Text = "NORM";


                    MKT_Division.Text = "10";
                    SetEnable(false, MKT_GenItemCatGroup, MKT_Division);
                    SetForeColor(Color.Orange, MKT_GenItemCatGroup_L, MKT_Division_L);
                    if (FORM == "FORM-005" && TaskAPI.Process == "NPL Master Data Application")
                    {
                        MKT_Marterial_Group.Text = "IFM";
                        SetForeColor(Color.Blue, MKT_Product_Hierarchy_L);
                    }
                    if (Category == "FINI" && FORM == "FORM-001")
                    {
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        MKT_Marterial_Group.Text = "IFM";
                        MKT_Division.Text = "10";

                        SetEnable(false, MKT_Base_Unit_Of_Measure, MKT_Marterial_Group, MKT_Sales_Org, MKT_Distr_Channel, MKT_Division, MKT_Easy_Order_Entry_Code);
                        SetForeColor(Color.Orange, MKT_Base_Unit_Of_Measure_L, MKT_Marterial_Group_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Division_L);
                    }

                    if (FORM == "FORM-064")
                    {
                        MKT_SKU_BPCS_Code_L.Text = "Trade Code:";
                        MKT_Marterial_Group.Text = "EK";
                        MKT_Delivering_plant.Text = "K51D";

                        SetEnable(false, MKT_Sales_Org, MKT_Distr_Channel, MKT_Delivering_plant);
                        SetForeColor(Color.Orange, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Delivering_plant_L);
                    }

                    if (FORM == "FORM-074")
                    {
                        //if (Action == "C")
                        //{
                        //    MKT_Type_Select.Text = "從國外引進的產品";
                        //}
                        //else
                        //{
                        //    MKT_Type_Select.Text = "";
                        //}
                        MKT_Type_Select.Text = "從國外引進的產品";
                        MKT_Delivering_plant.Text = "K51D";

                        SetEnable(false, MKT_Sales_Org, MKT_Distr_Channel, MKT_Type_Select, MKT_Delivering_plant);
                        SetForeColor(Color.Orange, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Type_Select_L, MKT_Delivering_plant_L);
                    }

                    if (FORM == "FORM-065-1" || FORM == "FORM-065-2")
                    {
                        MKT_Marterial_Group.Text = "GPM";
                        MKT_Min_dely_qty.Text = "1";
                        //MKT_Min_order_qty.Text = "1";
                        MKT_Delivering_plant.Text = "K51D";
                        MKT_Profit_Center.SelectedValue = "89";
                        MKT_Volume_Rebate_Group.SelectedValue = "KB";
                        MKT_Lab_Office.SelectedValue = "K14";
                        MKT_Min_order_qty.Text = "1";

                        SetEnable(false, MKT_Sales_Org, MKT_Distr_Channel, MKT_Marterial_Group, MKT_Min_dely_qty, MKT_Delivering_plant, MKT_Profit_Center,
                                         MKT_Volume_Rebate_Group, MKT_Lab_Office, MKT_Min_order_qty);
                        SetForeColor(Color.Orange, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Marterial_Group_L, MKT_Min_dely_qty_L,
                                                   MKT_Delivering_plant_L, MKT_Profit_Center_L, MKT_Volume_Rebate_Group_L, MKT_Lab_Office_L, MKT_Min_order_qty_L);
                    }

                    if (FORM == "FORM-031-1" || FORM == "FORM-031-2")
                    {
                        MKT_Volume_Rebate_Group.SelectedValue = "KB";
                        MKT_Lab_Office.SelectedValue = "KAU";
                        MKT_Profit_Center.SelectedValue = "88";
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        MKT_Marterial_Group.Text = "IFM";
                        MKT_Division.Text = "10";
                        MKT_Delivering_plant.Text = "K15D";
                        SetEnable(false, MKT_Volume_Rebate_Group, MKT_Lab_Office, MKT_Profit_Center, MKT_Base_Unit_Of_Measure, MKT_Marterial_Group, MKT_Division, MKT_Delivering_plant);
                        SetForeColor(Color.Orange, MKT_Volume_Rebate_Group_L, MKT_Lab_Office_L, MKT_Profit_Center_L, MKT_Base_Unit_Of_Measure_L, MKT_Marterial_Group_L, MKT_Division_L, MKT_Delivering_plant_L);
                    }

                    if (FORM == "FORM-014")
                    {
                        if (TaskAPI.Process == "ADVE Code Application")
                        {
                            //MKT_Plant.Text = "K48D,K29D,K30D,K43D,K15D,K16D,K17D,K18D,K19D,K20D,K22D,K23D,K24D,K44D,K45D,K59D,K72D,K73D";
                            //MKT_Plant.Text = "K48D, K29D, K30D, K43D, K15D, K16D, K17D, K18D, K19D, K20D, K21D, K22D, K23D, K24D, K44D, K45D,K59D,K72D,K73D, K76D, K79D";
                            
                            //MKT_Plant.Text = "K1BD K29D K31D K32D K33D K34D K35D K36D K37D K38D K71D K75D K78D K88D K90D(R:0540;P:0501) K91D(0520) K93D";

                            //Modified for CAL0160744
                            MKT_Plant.Text = "K1BD K29D K31D K32D K33D K34D K35D K36D K38D K71D K75D K78D K88D K90D(R:0540;P:0501) K91D(0520) K93D";
                            //MKT_Marterial_Group.Text = "GPM";
                            MKT_Division.Text = "10";
                            MKT_Lab_Office.SelectedValue = "K14";
                            MKT_GenItemCatGroup.Text = "NORM";
                            MKT_Volume_Rebate_Group.SelectedValue = "KB";
                            MKT_X_Plant_Matl.Text = "EC";
                            MKT_Profit_Center.SelectedValue = "89";
                            SetEnable(false, MKT_Plant, MKT_Division, MKT_Lab_Office, MKT_GenItemCatGroup, MKT_X_Plant_Matl, MKT_Volume_Rebate_Group, MKT_Profit_Center, MKT_Sales_Org, MKT_Distr_Channel);
                            SetForeColor(Color.Orange, MKT_Plant_L, MKT_Division_L, MKT_Lab_Office_L, MKT_GenItemCatGroup_L, MKT_X_Plant_Matl_L, MKT_Volume_Rebate_Group_L, MKT_Profit_Center_L, MKT_Sales_Org_L, MKT_Distr_Channel_L);
                        }
                        else
                        {
                            MKT_Plant.Text = "K48D,K29D,K30D,K43D,K15D,K16D,K17D,K18D,K19D,K20D,K22D,K23D,K24D,K44D,K45D,K59D,K72D,K73D";
                            MKT_Marterial_Group.Text = "GPM";
                            MKT_Division.Text = "10";
                            MKT_Lab_Office.SelectedValue = "K14";
                            MKT_GenItemCatGroup.Text = "NORM";
                            MKT_Volume_Rebate_Group.SelectedValue = "KB";
                            MKT_Profit_Center.SelectedValue = "89";
                            SetEnable(false, MKT_Plant, MKT_Marterial_Group, MKT_Division, MKT_Lab_Office, MKT_GenItemCatGroup, MKT_Volume_Rebate_Group, MKT_Profit_Center);
                            SetForeColor(Color.Orange, MKT_Plant_L, MKT_Marterial_Group_L, MKT_Division_L, MKT_Lab_Office_L, MKT_GenItemCatGroup_L, MKT_Volume_Rebate_Group_L, MKT_Profit_Center_L);
                            //SetEnable(true, MKT_Base_Unit_Of_Measure);
                            //SetForeColor(Color.Blue, MKT_Base_Unit_Of_Measure_L);
                        }
                    }
                    if (FORM == "FORM-015")
                    {
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        MKT_Division.Text = "10";
                        MKT_Volume_Rebate_Group.SelectedValue = "KB";
                        MKT_Marterial_Group.Text = "DPA";
                        MKT_Profit_Center.SelectedValue = "89";
                        MKT_Size_dimension.Text = "KG";
                        SetEnable(false, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Volume_Rebate_Group, MKT_Marterial_Group, MKT_Profit_Center, MKT_Size_dimension);
                        SetForeColor(Color.Orange, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Volume_Rebate_Group_L, MKT_Marterial_Group_L, MKT_Profit_Center_L, MKT_Size_dimension_L);

                    }
                    if (FORM == "FORM-067")
                    {
                        MKT_Easy_Order_Entry_Code.Text = this.MKT_FINI_Code.Text;
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        MKT_Division.Text = "10";
                        MKT_Marterial_Group.Text = "IFM";
                        SetEnable(false, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Marterial_Group);
                        SetForeColor(Color.Orange, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Marterial_Group_L);
                    }
                    if (FORM == "FORM-062")
                    {
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        MKT_Division.Text = "10";
                        MKT_Marterial_Group.Text = "IFM";
                        MKT_Delivering_plant.Text = "K51D";
                        SetEnable(false, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Marterial_Group, MKT_Sales_Org, MKT_Distr_Channel, MKT_Delivering_plant);
                        SetForeColor(Color.Orange, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Marterial_Group_L, MKT_Delivering_plant_L);
                    }
                    if (FORM == "FORM-T001")
                    {
                        MKT_Plant.Text = "KT1D";
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        MKT_Material_Group_4.Text = "K14";
                        MKT_Division.Text = "10";
                        MKT_Lab_Office.SelectedValue = "KBE";
                        MKT_GenItemCatGroup.Text = "NORM";
                        MKT_Size_dimension.Text = "PC";
                        MKT_Delivering_plant.Text = "KT1D";
                        MKT_Unit_of_Dimension.Text = "CM";
                        MKT_Marterial_Group.Text = "GPM";
                        MKT_Profit_Center.SelectedValue = "D4239003";
                        SetEnable(false, MKT_Plant, MKT_Base_Unit_Of_Measure, MKT_Material_Group_4, MKT_Division, MKT_Lab_Office, MKT_Delivering_plant
                                       , MKT_GenItemCatGroup, MKT_Size_dimension, MKT_Delivering_plant, MKT_Unit_of_Dimension, MKT_Easy_Order_Entry_Code
                                       , MKT_Sales_Org, MKT_Distr_Channel, MKT_Net_Weight, MKT_Profit_Center);
                        SetForeColor(Color.Orange, MKT_Plant_L, MKT_Base_Unit_Of_Measure_L, MKT_Material_Group_4_L, MKT_Division_L, MKT_Net_Weight_L
                                                 , MKT_Lab_Office_L, MKT_GenItemCatGroup_L, MKT_Size_dimension_L, MKT_Delivering_plant_L, MKT_Profit_Center_L
                                                 , MKT_Unit_of_Dimension_L, MKT_Easy_Order_Entry_Code_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Delivering_plant_L);

                    }
                    if (FORM == "FORM-T009")
                    {
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        MKT_Marterial_Group.Text = "DPA";
                        MKT_Division.Text = "10";
                        MKT_Lab_Office.SelectedValue = "KBB";
                        MKT_GenItemCatGroup.Text = "NORM";
                        MKT_Material_Group_4.SelectedValue = "K13";
                        MKT_Delivering_plant.Text = "KT1D";
                        MKT_Profit_Center.SelectedValue = "D4239001";
                        MKT_Size_dimension.Text = "KG";
                        MKT_Unit_of_Dimension.Text = "CM";
                        MKT_Unit_Of_Measure_X_2.Text = "1";
                        MKT_Unit_Of_Measure_AUN_2.SelectedValue = "FCU";
                        MKT_Unit_Of_Measure_Y_2.Text = "1";
                        MKT_Unit_Of_Measure_Bun_2.SelectedValue = "PC";
                        //if (!string.IsNullOrEmpty(MKT_EAN_UPC.Text))
                        //{
                        //    SetForeColor(Color.Orange, MKT_EAN_Category_L);
                        //    MKT_EAN_Category.Text = "01";
                        //    SetEnable(false, MKT_EAN_Category);
                        //}
                        SetEnable(false, MKT_Plant, MKT_Base_Unit_Of_Measure, MKT_Material_Group_4, MKT_Division, MKT_Lab_Office
                                      , MKT_GenItemCatGroup, MKT_Size_dimension, MKT_Delivering_plant, MKT_Unit_of_Dimension, MKT_Easy_Order_Entry_Code
                                      , MKT_Sales_Org, MKT_Distr_Channel, MKT_Profit_Center, MKT_Unit_Of_Measure_X_2, MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_Y_2, MKT_Unit_Of_Measure_Bun_2);
                        SetForeColor(Color.Orange, MKT_Plant_L, MKT_Base_Unit_Of_Measure_L, MKT_Material_Group_4_L, MKT_Division_L
                                                 , MKT_Lab_Office_L, MKT_GenItemCatGroup_L, MKT_Size_dimension_L, MKT_Delivering_plant_L
                                                 , MKT_Unit_of_Dimension_L, MKT_Easy_Order_Entry_Code_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Profit_Center_L);

                    }
                    if (FORM == "FORM-T012")
                    {
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        MKT_Marterial_Group.Text = "";
                        MKT_Division.Text = "10";
                        //MKT_Lab_Office.SelectedValue = "KBB";
                        MKT_GenItemCatGroup.Text = "NORM";

                        //MKT_Material_Group_4.SelectedValue = "K13";
                        //MKT_Delivering_plant.Text = "KT1D";
                        MKT_Profit_Center.SelectedValue = "P4239001";
                        MKT_Size_dimension.Text = "KG";
                        //MKT_Unit_Of_Measure_AUN.SelectedValue = "KG";
                        //MKT_Unit_Of_Measure_AUN_1.SelectedValue = "L";
                        //MKT_Unit_Of_Measure_Bun_1.SelectedValue = "PC";
                        //MKT_Unit_Of_Measure_Bun.SelectedValue = "PC";
                        MKT_Unit_Of_Measure_X_2.Text = "1";
                        MKT_Unit_Of_Measure_AUN_2.SelectedValue = "FCU";
                        MKT_Unit_Of_Measure_Y_2.Text = "1";
                        MKT_Unit_Of_Measure_Bun_2.SelectedValue = "PC";

                        MKT_GenItemCatGroup.Text = "NORM";
                        MKT_Tax_category.Text = "MWST";
                        MKT_Departure_country.Text = "TW";
                        MKT_Tax_classification.Text = "1";
                        MKT_Cash_Discount.SelectedValue = "N";
                        //MKT_Acct_Assignment_Grp.SelectedValue = "01";
                        MKT_Delivering_Plant_1.Text = "KT2D";
                        MKT_Item_Category_Group_1.Text = "NORM";
                        MKT_Easy_Order_Entry.Text = "0";
                        MKT_Marterial_Group.Text = "DCA";
                        SetForeColor(Color.Orange, MKT_GenItemCatGroup_L, MKT_Delivering_Plant_1_L, MKT_Item_Category_Group_1_L, MKT_Departure_country_L, MKT_Tax_category_L, MKT_Tax_classification_L, MKT_Cash_Discount_L, MKT_Easy_Order_Entry_L, MKT_Marterial_Group_L, MKT_Distr_Channel_L);
                        SetEnable(false, MKT_GenItemCatGroup, MKT_Delivering_Plant_1, MKT_Item_Category_Group_1, MKT_Departure_country, MKT_Tax_category, MKT_Tax_classification, MKT_Cash_Discount, MKT_Easy_Order_Entry, MKT_Marterial_Group, MKT_Distr_Channel);

                        SetEnable(false, MKT_Plant, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_GenItemCatGroup, MKT_Size_dimension, MKT_Easy_Order_Entry_Code, MKT_Sales_Org, MKT_Profit_Center);
                        SetForeColor(Color.Orange, MKT_Plant_L, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_GenItemCatGroup_L, MKT_Size_dimension_L, MKT_Easy_Order_Entry_Code_L, MKT_Sales_Org_L, MKT_Profit_Center_L);
                        SetEnable(false, MKT_Unit_Of_Measure_X_2, MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_Y_2, MKT_Unit_Of_Measure_Bun_2);

                    }
                    if (FORM == "FORM-T006")
                    {
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        MKT_Division.Text = "10";
                        MKT_GenItemCatGroup.Text = "NORM";
                        MKT_Size_dimension.Text = "L";
                        MKT_Unit_of_Dimension.Text = "CM";
                        MKT_Delivering_plant.Text = "KT1D";
                        MKT_Profit_Center.SelectedValue = "D4239003";
                        SetEnable(false, MKT_Sales_Org, MKT_Distr_Channel, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_GenItemCatGroup, MKT_Delivering_plant, MKT_Easy_Order_Entry_Code, MKT_Size_dimension, MKT_Unit_of_Dimension, MKT_FINI_Code, MKT_Profit_Center);
                        SetForeColor(Color.Orange, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_GenItemCatGroup_L, MKT_Delivering_plant_L, MKT_Easy_Order_Entry_Code_L, MKT_Size_dimension_L, MKT_Unit_of_Dimension_L, MKT_FINI_Code_L, MKT_Profit_Center_L);
                    }
                    if (FORM == "FORM-T010")
                    {
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        MKT_Division.Text = "10";
                        MKT_GenItemCatGroup.Text = "NORM";
                        MKT_Size_dimension.Text = "KG";
                        MKT_Unit_of_Dimension.Text = "CM";
                        MKT_Marterial_Group.Text = "IFM";
                        MKT_Delivering_plant.Text = "KT2D";
                        MKT_Item_category_group.SelectedValue = "NORM";
                        MKT_Unit_Of_Measure_AUN.SelectedValue = "KG";
                        MKT_Unit_Of_Measure_AUN_1.SelectedValue = "L";
                        MKT_Unit_Of_Measure_AUN_2.SelectedValue = "FCU";
                        MKT_Unit_Of_Measure_Bun.SelectedValue = "PC";
                        MKT_Unit_Of_Measure_Bun_1.SelectedValue = "PC";
                        MKT_Unit_Of_Measure_Bun_2.SelectedValue = "PC";
                        MKT_Profit_Center.SelectedValue = "P4239001";

                        if (TaskAPI.IsBeginStep && TaskAPI.IsAllowSubmit)
                        {
                            SetEnable(true, MKT_Distr_Channel);
                        }
                        else
                        {
                            SetEnable(false, MKT_Distr_Channel);
                        }


                        SetEnable(false, MKT_Sales_Org, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_GenItemCatGroup, MKT_Marterial_Group
                                       , MKT_Size_dimension, MKT_Unit_of_Dimension, MKT_Item_category_group, MKT_Delivering_plant, MKT_Profit_Center
                                       , MKT_Easy_Order_Entry_Code, MKT_Unit_Of_Measure_AUN, MKT_Unit_Of_Measure_AUN, MKT_Unit_Of_Measure_AUN_1
                                       , MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_Bun, MKT_Unit_Of_Measure_Bun_1, MKT_Unit_Of_Measure_Bun_2, MKT_Item_category_group);
                        SetForeColor(Color.Orange, MKT_Sales_Org_L, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_GenItemCatGroup_L, MKT_Delivering_plant_L
                                                 , MKT_Size_dimension_L, MKT_Unit_of_Dimension_L, MKT_Easy_Order_Entry_Code_L, MKT_Marterial_Group_L
                                                 , MKT_Unit_Of_Measure_AUN_L, MKT_Unit_Of_Measure_Bun_L, MKT_Item_category_group_L, MKT_Profit_Center_L);
                        SetEnable(true, MKT_Distr_Channel);

                    }

                    if (FORM == "FORM-TW-010")
                    {

                        MKT_Item_category_group.SelectedValue = "NORM";
                        MKT_Profit_Center_L.Text = "Profit Center";
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        MKT_Marterial_Group.Text = "IFM";
                        MKT_Division.Text = "10";
                        MKT_Size_dimension.Text = "KG";
                        MKT_Delivering_plant.Text = "KT2D";
                        MKT_Unit_Of_Measure_AUN.SelectedValue = "KG";
                        MKT_Unit_Of_Measure_AUN_1.SelectedValue = "L";
                        MKT_Unit_Of_Measure_AUN_2.SelectedValue = "FCU";
                        MKT_Unit_Of_Measure_Bun.SelectedValue = "PC";
                        MKT_Unit_Of_Measure_Bun_1.SelectedValue = "PC";
                        MKT_Unit_Of_Measure_Bun_2.SelectedValue = "PC";
                        if (TaskAPI.Process == "TW FINI Code Application" || (TaskAPI.Process == "TW NPL Application-PKG" && TaskAPI.Step == "Fill in the request"))
                        {
                            MKT_Unit_Of_Measure_Y.Text = "1000";
                            MKT_Unit_Of_Measure_Y_1.Text = "1000";
                            MKT_Unit_Of_Measure_Y_2.Text = "1000";
                        }

                        MKT_Acct_Assignment_Grp.SelectedValue = "01";

                        MKT_Profit_Center.SelectedValue = "P4239001";

                        SetForeColor(Color.Orange, MKT_Delivering_Plant_1_L, MKT_Item_Category_Group_1_L, MKT_Departure_country_L, MKT_Tax_category_L, MKT_Tax_classification_L, MKT_Acct_Assignment_Grp_L, MKT_Cash_Discount_L, MKT_Easy_Order_Entry_L);
                        SetEnable(false, MKT_Delivering_Plant_1, MKT_Item_Category_Group_1, MKT_Departure_country, MKT_Tax_category, MKT_Tax_classification, MKT_Acct_Assignment_Grp, MKT_Cash_Discount, MKT_Easy_Order_Entry);
                        SetForeColor(Color.Orange, MKT_Distr_Channel_L, MKT_Item_category_group_L, MKT_Unit_Of_Measure_Bun_L, MKT_Sales_Org_L, MKT_Marterial_Group_L, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Size_dimension_L, MKT_Delivering_plant_L, MKT_Item_category_group_L);
                        SetEnable(false, MKT_Distr_Channel, MKT_Sales_Org, MKT_Unit_Of_Measure_Bun_2, MKT_Unit_Of_Measure_Bun_1, MKT_Unit_Of_Measure_Bun, MKT_Unit_Of_Measure_AUN_1, MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_AUN, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Size_dimension, MKT_Delivering_plant, MKT_Item_category_group);

                    }
                    if (FORM == "FORM-TW-007")
                    {
                        MKT_Profit_Center_L.Text = "Profit Center";
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        MKT_Division.Text = "10";
                        MKT_Lab_Office.SelectedValue = "KBA";
                        MKT_Item_category_group.SelectedValue = "NORM";
                        MKT_Size_dimension.Text = "L";
                        MKT_EAN_Category.Text = "K0";
                        MKT_Delivering_plant.Text = "KT1D";
                        MKT_Numerator_1.Text = "1000";
                        MKT_Numerator_2.Text = "1000";
                        MKT_Denominator_1.Text = "0";
                        MKT_Denominator_2.Text = "0";
                        MKT_Lab_Office.SelectedValue = "KBA";
                        MKT_Unit_of_Dimension.Text = "CM";

                        MKT_Marterial_Group.Text = "IFM";
                        MKT_Tax_category.Text = "MWST";
                        MKT_Departure_country.Text = "TW";
                        MKT_Tax_classification.Text = "1";
                        MKT_Cash_Discount.SelectedValue = "Y";
                        MKT_Acct_Assignment_Grp.SelectedValue = "01";
                        MKT_Delivering_Plant_1.Text = "KT1D";
                        MKT_Item_category_group.Text = "NORM";
                        MKT_Easy_Order_Entry.Text = "0";
                        MKT_Unit_Of_Measure_AUN_2.SelectedValue = "FCU";
                        MKT_Unit_Of_Measure_Y_2.Text = "1000";
                        MKT_Unit_Of_Measure_Bun_2.SelectedValue = "PC";
                        MKT_Unit_Of_Measure_AUN.SelectedValue = "KG";
                        MKT_Unit_Of_Measure_Y.Text = "1000";
                        MKT_Unit_Of_Measure_Bun.SelectedValue = "PC";
                        MKT_Unit_Of_Measure_AUN_1.SelectedValue = "L";
                        MKT_Unit_Of_Measure_Y_1.Text = "1000";
                        MKT_Unit_Of_Measure_Bun_1.SelectedValue = "PC";

                        //MKT_Profit_Center.SelectedValue = "D4239003";
                        if (TaskAPI.Process != "TW FINI Code Application")
                        {
                            SetForeColor(Color.Blue, MKT_Profit_Center_L);
                        }
                        SetEnable(false, MKT_Unit_Of_Measure_AUN_2, MKT_Unit_Of_Measure_Y_2, MKT_Unit_Of_Measure_Bun_2, MKT_Unit_Of_Measure_X_2, MKT_Unit_Of_Measure_AUN_1, MKT_Unit_Of_Measure_Y_1, MKT_Unit_Of_Measure_Bun_1, MKT_Unit_Of_Measure_X_1
                                       , MKT_Unit_Of_Measure_AUN, MKT_Unit_Of_Measure_Y, MKT_Unit_Of_Measure_Bun, MKT_Unit_Of_Measure_X);
                        SetForeColor(Color.Orange, MKT_Marterial_Group_L, MKT_Delivering_Plant_1_L, MKT_Item_category_group_L, MKT_Departure_country_L, MKT_Tax_category_L, MKT_Tax_classification_L, MKT_Acct_Assignment_Grp_L, MKT_Cash_Discount_L, MKT_Easy_Order_Entry_L);
                        SetEnable(false, MKT_Delivering_Plant_1, MKT_Departure_country, MKT_Tax_category, MKT_Tax_classification, MKT_Acct_Assignment_Grp, MKT_Cash_Discount, MKT_Easy_Order_Entry);

                        SetForeColor(Color.Orange, MKT_Item_category_group_L, MKT_Unit_of_Dimension_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Denominator_2_L, MKT_Denominator_1_L, MKT_Numerator_2_L, MKT_Numerator_1_L, MKT_EAN_Category_L, MKT_Lab_Office_L, MKT_Sales_Org_L, MKT_Distr_Channel_L, MKT_Base_Unit_Of_Measure_L, MKT_Division_L, MKT_Size_dimension_L, MKT_Delivering_plant_L);
                        SetEnable(false, MKT_Unit_of_Dimension, MKT_Denominator_2, MKT_Denominator_1, MKT_Numerator_2, MKT_Numerator_1, MKT_EAN_Category, MKT_Lab_Office, MKT_Sales_Org, MKT_Distr_Channel, MKT_Base_Unit_Of_Measure, MKT_Division, MKT_Size_dimension, MKT_Delivering_plant);
                    }
                    if (FORM == "FORM-T018")
                    {
                        MKT_Product_Hierarchy.Text = "TW001007061";
                        MKT_Departure_country.Text = "TW";
                        MKT_Tax_category.Text = "MWST";
                        MKT_Tax_classification.Text = "1";
                        MKT_Cash_Discount.SelectedValue = "N";
                        MKT_Acct_Assignment_Grp.SelectedValue = "08";
                        //MKT_Delivering_plant.Text = "KT1D/KT2D";
                        MKT_Item_category_group.SelectedValue = "NORM";
                        SetEnable(false, MKT_Product_Hierarchy, MKT_Departure_country, MKT_Tax_category, MKT_Tax_classification, MKT_Cash_Discount, MKT_Acct_Assignment_Grp, MKT_Delivering_plant, MKT_Item_category_group, MKT_Sales_Org);
                        SetForeColor(Color.Orange, MKT_Product_Hierarchy_L, MKT_Departure_country_L, MKT_Tax_category_L, MKT_Tax_classification_L, MKT_Cash_Discount_L, MKT_Acct_Assignment_Grp_L, MKT_Delivering_plant_L, MKT_Item_category_group_L, MKT_Sales_Org_L);
                    }
                    if (FORM == "FORM-T002")
                    {
                        MKT_Base_Unit_Of_Measure.Text = "PC";
                        MKT_Marterial_Group.Text = "CSG";
                        MKT_Division.Text = "10";
                        MKT_Lab_Office.SelectedValue = "KBF";
                        MKT_Unit_of_Dimension.Text = "CM";
                        MKT_GenItemCatGroup.Text = "DIEN";
                        MKT_Tax_classification.Text = "1";
                        MKT_Delivering_plant.Text = "KT1D";
                        MKT_Acct_Assignment_Grp.SelectedValue = "11";
                        MKT_Product_Hierarchy.Text = "TW001006059";
                        MKT_Profit_Center.SelectedValue = "D4239003";
                        MKT_Material_Attributes_1.Text = "0022";
                        MKT_Material_Group_4.SelectedValue = "K15";
                        //MKT_Cash_Discount.SelectedValue = "Y";
                        MKT_Plant.Text = "KT1D";
                        SetEnable(false, MKT_Base_Unit_Of_Measure, MKT_Marterial_Group, MKT_Division, MKT_Lab_Office, MKT_Unit_of_Dimension, MKT_GenItemCatGroup, MKT_Tax_classification, MKT_Plant
                                       , MKT_Delivering_plant, MKT_Acct_Assignment_Grp, MKT_Product_Hierarchy, MKT_Profit_Center, MKT_Material_Attributes_1, MKT_Easy_Order_Entry_Code, MKT_Sales_Org, MKT_Distr_Channel, MKT_Material_Group_4);
                        SetForeColor(Color.Orange, MKT_Base_Unit_Of_Measure_L, MKT_Marterial_Group_L, MKT_Division_L, MKT_Lab_Office_L, MKT_Unit_of_Dimension_L, MKT_GenItemCatGroup_L, MKT_Tax_classification_L, MKT_Material_Group_4_L
                                       , MKT_Delivering_plant_L, MKT_Acct_Assignment_Grp_L, MKT_Product_Hierarchy_L, MKT_Profit_Center_L, MKT_Material_Attributes_1_L, MKT_Easy_Order_Entry_Code_L, MKT_Distr_Channel_L, MKT_Sales_Org_L, MKT_Plant_L);
                    }
                    break;
            }
            //if (TaskAPI.Process.Contains("TW"))
            //{
            //    if (TaskAPI.Process.Contains("PKG"))
            //    {
            //        MKT_Profit_Center.SelectedValue = "P4239001";
            //        SetForeColor(Color.Orange, MKT_Profit_Center_L);
            //        SetEnable(false, MKT_Profit_Center);
            //    }
            //    if (TaskAPI.Process.Contains("DECO"))
            //    {
            //        MKT_Profit_Center.SelectedValue = "D4239003";
            //        SetForeColor(Color.Orange, MKT_Profit_Center_L);
            //        SetEnable(false, MKT_Profit_Center);
            //    }
            //}
        }
        #endregion

        #region 方法 SetToolTip(设置控件 ToolTip)
        public void SetToolTip()
        {
            switch (Category)
            {
                case "PACK":
                    MKT_Base_Unit_Of_Measure.ToolTip = "基本单位(默认PC: Pieces)";
                    MKT_Description_EN_1.ToolTip = "包装产品容积(4bit)";
                    MKT_Description_EN_2.ToolTip = "包装中英文描述(24bit)";
                    MKT_Description_EN_3.ToolTip = "如果包装类型I中没有可选项，可以不选，但必须在包装类型II中做描述。";
                    MKT_Description_EN_4.ToolTip = "如果包装类型I中没有可选项，可以不选，但必须在包装类型II中做描述。包装类型II(12bit)";

                    MKT_Description_ZH_1.ToolTip = "包装产品容积(4bit)";
                    MKT_Description_ZH_2.ToolTip = "包装中英文描述(24bit)";
                    MKT_Description_ZH_3.ToolTip = "如果包装类型I中没有可选项，可以不选，但必须在包装类型II中做描述";
                    MKT_Description_ZH_4.ToolTip = "如果包装类型I中没有可选项，可以不选，但必须在包装类型II中做描述。包装类型II(12bit)";
                    MKT_Division.ToolTip = "产品组(默认为10: General(incl. Exp.))";
                    MKT_GenItemCatGroup.ToolTip = "普通项目类别组(默认为NORM: Standard item)";
                    MKT_Lab_Office.ToolTip = "产品层次(Category + Segment)";
                    MKT_Marterial_Group.ToolTip = "物料组";
                    MKT_Exemption.ToolTip = "版本号";
                    MKT_Issdate.ToolTip = "版本生效日期";
                    break;
                case "SEFI":
                    MKT_Base_Unit_Of_Measure.ToolTip = "基本单位(默认KG)";
                    MKT_Description_ZH.ToolTip = "中文描述(不超过40个字节)\n(SEFI Code+Description 2 (Chinese))";
                    MKT_Description_EN.ToolTip = "英文描述(不超过40个字节)(If Top Sefi: Brand+Descrip(EN)+Product line+Color code+Material code\nIf not, Sefi code+Descrip(EN))";
                    MKT_Division.ToolTip = "产品组(默认为10: General(incl. Exp.))";
                    MKT_Marterial_Group.ToolTip = "物料组(默认为H)";
                    break;
                case "FINI":
                case "TRADE":
                    MKT_Base_Unit_Of_Measure.ToolTip = "基本单位(默认PC: Pieces)";
                    if (FORM == "FORM-015")
                    {
                        MKT_Description_ZH.ToolTip = "中文描述(不超过40个字节)";
                        MKT_Description_EN.ToolTip = "英文描述(不超过40个字节)";
                        MKT_Marterial_Group.ToolTip = "物料组(默认为DPA)";
                        MKT_SKU_BPCS_Code.ToolTip = "Product Code";
                        MKT_Profit_Center.ToolTip = "利润中心(销售渠道默认为89)";
                        MKT_Size_dimension.ToolTip = "大小/量纲(默认为KG)";
                        MKT_Volume_Rebate_Group.ToolTip = "成交额回扣组(默认为KB)";
                    }
                    else if (FORM == "FORM-077")
                    {
                        MKT_Description_ZH.ToolTip = "中文描述(不超过40个字节)";
                        MKT_Description_EN.ToolTip = "英文描述(不超过40个字节)";
                    }
                    else
                    {
                        MKT_Description_ZH.ToolTip = "中文描述(不超过40个字节 Code+中文描述\nEg, A728-B68002 2.4kg 清漆面漆半哑)";
                        MKT_Description_EN.ToolTip = "英文描述(不超过40个字节 Brand+EN descr.+Color code+Pack size+ SEFI Code\nEg.DY Crystal Wood 68002 2.4KG A728-B68002)";
                        MKT_Material_Group_4.ToolTip = "物料组4";
                        MKT_Marterial_Group.ToolTip = "物料组（默认IFM: Finish Materials）";
                        MKT_SKU_BPCS_Code.ToolTip = "产品线+色号+包装，包装code编码规则同原来的BPCS Code";
                        MKT_Profit_Center.ToolTip = "利润中心(销售渠道)";
                        MKT_Size_dimension.ToolTip = "大小/量纲:由包装单位决定";
                        MKT_Volume_Rebate_Group.ToolTip = "成交额回扣组，根据Lab/Office判断";
                    }
                    MKT_GenItemCatGroup.ToolTip = "普通项目类别组(默认为NORM: Standard item)";
                    MKT_Product_Group.ToolTip = "产品类";
                    MKT_Product_Hierarchy.ToolTip = "产品层次";
                    MKT_Product_Line_Code.ToolTip = "产品线";

                    MKT_Volume_Rebate_Group.ToolTip = "成交额回扣组";

                    MKT_Sales_Org.ToolTip = "销售组织，默认都选";
                    MKT_Distr_Channel.ToolTip = "渠道，默认都选";

                    MKT_Material_Group_4.ToolTip = "物料组4，根据Lab/Office判断";
                    MKT_Description_EN_1.ToolTip = "SKU描述，Brand（2bit)+英文描述+色号+包装+BPCS Code，40字节以内 Eg，DY Crystal Wood 68002 2.4KG A728-B68002";
                    MKT_Description_ZH_1.ToolTip = "SKU描述，Brand（2bit)+英文描述+色号+包装+BPCS Code，40字节以内 Eg，DY Crystal Wood 68002 2.4KG A728-B68002";
                    MKT_FINI_Code.ToolTip = "产品线+色号+包装:包装Code，编码规则同原来的BPCS Code";

                    MKT_Division.ToolTip = "产品组(默认为10: General(incl. Exp.))";
                    MKT_Lab_Office.ToolTip = "Category + Segment";

                    MKT_Order_unit.ToolTip = "订单单位（仅当与基本单位不同时填写）";

                    if (FORM == "FORM-001")
                    {
                        MKT_SKU_BPCS_Code.ToolTip = "旧Code";
                        MKT_Sales_Org.ToolTip = "需要扩展的销售组织";
                        MKT_Distr_Channel.ToolTip = "需要扩展的分销渠道";
                        MKT_Marterial_Group.ToolTip = "Material Group（默认：GPM）";
                        MKT_Material_Group_4.ToolTip = "物料组4";
                        MKT_Volume_Rebate_Group.ToolTip = "成交额回扣组";
                    }
                    else if (FORM == "FORM-064" || FORM == "FORM-074")
                    {
                        MKT_Sales_Org.ToolTip = "需要扩展的销售组织（默认:CN04）";
                        MKT_Distr_Channel.ToolTip = "需要扩展的分销渠道（默认:10）";
                        MKT_Description_EN.ToolTip = "英文描述 Brand+Description 1(EN)+Trade Code,不超过40个字节";
                        MKT_Description_ZF.ToolTip = "中文描述(繁体) 不超过40个字节Trade Code+中文描述";
                        MKT_Description_ZH.ToolTip = "中文描述 不超过40个字节 Trade Code+中文描述";
                        MKT_Marterial_Group.ToolTip = "Material Group默认：EK";
                        MKT_Volume_Rebate_Group.ToolTip = "成交额回扣组";
                        MKT_Material_Group_4.ToolTip = "物料组4";
                        MKT_Lab_Office.ToolTip = "实验室/设计室";
                        MKT_Delivering_plant.ToolTip = "交货工厂 (自有或外部) (默认：K51D)";
                        MKT_Is_Generic.ToolTip = "选择是否需要调色Yes/No";
                    }
                    if (FORM == "FORM-014")
                    {
                        MKT_SKU_BPCS_Code.ToolTip = "物料BPCS号";
                        MKT_Base_Unit_Of_Measure.ToolTip = "最小发货单位/基本单位（PC or BX）";
                        MKT_Description_ZH.ToolTip = "中文描述：物料中文名称";
                        MKT_Description_EN.ToolTip = "英文描述：物料英文名称";
                        MKT_Plant.ToolTip = "需要扩展的工厂";
                        MKT_Min_dely_qty.ToolTip = "最小发货单位数量（PC）";
                        MKT_Min_order_qty.ToolTip = "订单最小发货数量（PC）等于最小发货数量";
                        MKT_Delivery_unit.ToolTip = "交货单位：仅可以交货的该编号的确切倍数";
                        MKT_Delivering_plant.ToolTip = "发货工厂";
                        //MKT_Marterial_Group.ToolTip = "物料组 默认GPM";
                    }
                    if (FORM.IndexOf("T") != -1)
                    {
                        MKT_FINI_Code.ToolTip = " 物料編號";
                        MKT_MTO_OR_NPL.ToolTip = "選擇產品類型";
                        MKT_SKU_BPCS_Code.ToolTip = "物料編號";
                        MKT_Plant.ToolTip = "需要擴展的工廠 ";
                        MKT_Sales_Org.ToolTip = "需要擴展的銷售組織 ";
                        MKT_Distr_Channel.ToolTip = "分銷渠道 ";
                        MKT_Base_Unit_Of_Measure.ToolTip = "基本計量單位 ";
                        MKT_Description_EN.ToolTip = "物料英文描述 不超過40個字節，PC+産品名稱＋産品描述＋SKU＋産品名稱";
                        MKT_Description_ZH.ToolTip = "物料中文描述 不超過40個字節，産評名稱＋産品描述＋SKU";
                        MKT_Division.ToolTip = "産品組 ";
                        MKT_Lab_Office.ToolTip = "實驗室/設計室 ";
                        MKT_GenItemCatGroup.ToolTip = "普通項目類別組 ";
                        MKT_Size_dimension.ToolTip = "大小/量綱 ";
                        MKT_Profit_Center.ToolTip = "利潤中心 ";
                        MKT_Length.ToolTip = "長度 單位爲CM 不超過三位小數";
                        MKT_Width.ToolTip = "寬度 單位爲CM  不超過三位小數";
                        MKT_Height.ToolTip = "高度 單位爲CM 不超過三位小數";
                        MKT_Unit_of_Dimension.ToolTip = "長度/寬度/高度的尺寸單位 ";
                        MKT_Gross_Weight.ToolTip = "毛重 不超過三位小數";
                        MKT_Volume.ToolTip = "體積，不超過三位小數";
                        MKT_Net_Weight.ToolTip = "淨重 不超過三位小數";
                        MKT_Base_Unit_Of_Measure.ToolTip = "基本計量單位";
                        MKT_Marterial_Group.ToolTip = "物料組";


                        MKT_Product_Hierarchy.ToolTip = "產品層次 ";
                        MKT_Material_Group_4.ToolTip = "物料組 4";
                        MKT_EAN_UPC.ToolTip = "Barcode";
                        MKT_Material_Attributes_1.ToolTip = "物料屬性1";
                        MKT_Material_Attributes_2.ToolTip = "物料屬性2";
                        MKT_Material_Attributes_3.ToolTip = "物料屬性3";
                        MKT_Product_Cluster.ToolTip = "産品綫";
                        MKT_Delivering_Plant_1.ToolTip = "交貨工廠(自由/外部)";
                        MKT_Item_Category_Group_1.ToolTip = "項目類別組";
                        MKT_Delivering_plant.ToolTip = "交貨工廠(自由/外部)";
                        MKT_Departure_country.ToolTip = "發貨國";
                        MKT_Tax_category.ToolTip = "默認為MWST";
                        MKT_Tax_classification.ToolTip = "物料的稅分類";
                        MKT_Minimun_delivery_quantity.ToolTip = "最小訂購量 若非必要請勿填寫";
                        MKT_Minimun_order_quantity.ToolTip = "最小交貨量 若非必要請勿填寫";
                        MKT_Acct_Assignment_Grp.ToolTip = "科目設置組";
                        MKT_Cash_Discount.ToolTip = "現金的折扣標誌";

                        MKT_EAN_Category.ToolTip = "國際商品編碼的類別";
                        MKT_Dchain_spec_status.ToolTip = "制定分銷鏈的物料狀態 ";
                        MKT_Calendar1.ToolTip = "來自指定分銷鏈的物料狀態是有效的日期";
                        MKT_Denominator_1.ToolTip = "轉換爲基本計量單位的分母 即 Net Weight  *1000";
                        MKT_Denominator_2.ToolTip = "轉換爲基本計量單位的分母 L轉換值，即 Volume  *1000";
                        MKT_Numerator_1.ToolTip = "基本計量單位的轉換分子";
                        MKT_Numerator_2.ToolTip = "基本計量單位的轉換分子";
                        MKT_Marterial_Group.ToolTip = "物料組";
                        MKT_Easy_Order_Entry.ToolTip = "同Fini code";


                        if (FORM == "FORM-TW-010")
                        {
                            MKT_Description_EN.ToolTip = "物料英文描述Brand Code+産品名稱＋産品描述＋Pack size，不超過40個字節";
                            MKT_Description_ZH.ToolTip = "物料中文描述Brand Code + 産品名稱＋産品描述＋Pack size，不超過40個字節";
                        }
                        if (FORM == "FORM-TW-007-1")
                        {
                            MKT_Description_EN.ToolTip = "物料英文描述 不超過40個字節，Fini Code＋英文描述 即MM070: Material short text ENGLISH";
                        }
                        if (FORM == "FORM-TW-007")
                        {
                            MKT_Description_EN.ToolTip = "物料英文描述Brand Code+Fini Code＋英文描述，不超過40個字節 即MM070: Additional language short text";
                        }
                        if (FORM == "FORM-TW-007" || FORM == "FORM-TW-007-1")
                        {
                            MKT_Lab_Office.ToolTip = "實驗室/設計室 即MM070: Lab./Office,默認為KBA";
                            MKT_FINI_Code.ToolTip = "  物料編號 编号規則爲：産品綫-色號空格包裝";
                            MKT_Description_ZH.ToolTip = "物料中文描述 不超過40個字節，Fini Code＋中文描述 即MM070: Additional language short text";
                            MKT_Easy_Order_Entry.ToolTip = "同Fini Code";
                            MKT_Gross_Weight.ToolTip = "毛重 注意：需要加上Container的重量，不超過三位小數";
                            MKT_Volume.ToolTip = "體積，即容量: Liter 選項: 1, 3, 10, 3.785, 18.925,若無選項則填寫，不超過三位小數";
                            MKT_Item_category_group.ToolTip = "項目類別組 默認為NORM,Tinting爲Z003";
                            MKT_Marterial_Group.ToolTip = "物料組 MM070, Tinting爲ICM，其他FINI爲IFM";
                        }
                        if (FORM == "FORM-T012")
                        {
                            MKT_Easy_Order_Entry.ToolTip = "同Trade code";
                            MKT_Description_EN.ToolTip = "物料英文描述Brand Code+ TRAD Code＋ 英文描述，不超過40個字節";
                            MKT_Description_ZF.ToolTip = "物料中文描述TRAD Code＋中文描述，不超過40個字節";
                        }
                        if (FORM == "FORM-T009")
                        {
                            MKT_Description_EN.ToolTip = "物料英文描述Brand Code+産品名稱＋産品描述＋Pack size，不超過40個字節";
                            MKT_Description_ZF.ToolTip = "物料中文描述Brand Code + 産品名稱＋産品描述＋Pack size，不超過40個字節";
                        }
                    }
                    if (FORM == "FORM-T001")
                    {
                        MKT_SKU_BPCS_Code.ToolTip = "物料編號";
                        MKT_Plant.ToolTip = "需要擴展工廠 默認為KT1D";
                        MKT_Sales_Org.ToolTip = "銷售組織 默認爲TW01";
                        MKT_Distr_Channel.ToolTip = "分銷渠道 默認爲10";
                        MKT_Base_Unit_Of_Measure.ToolTip = "基本計量單位 默認爲PC";
                        //MKT_Description_EN.ToolTip = "物料英文描述 不超過40個字節";
                        //MKT_Description_ZF.ToolTip = "物料中文描述 不超過40位字節";
                        MKT_Description_EN.ToolTip = "ADVE Code +Descrip-EN 不超過40個字節";
                        MKT_Description_ZF.ToolTip = "ADVE Code +Descrip-ZF 不超過40個字節";
                        MKT_Division.ToolTip = "産品組 默認為10";
                        MKT_Lab_Office.ToolTip = "實驗室/設計室 即MM070:Lab./Office";
                        MKT_GenItemCatGroup.ToolTip = "普通項目類別組 默認爲NORM";
                        MKT_Size_dimension.ToolTip = "大小/量綱 同Basic Unit of Measure，默認爲PC";
                        MKT_Profit_Center.ToolTip = "利潤中心 必填";
                        MKT_Length.ToolTip = "長度 單位爲CM 不超過3位小數";
                        MKT_Width.ToolTip = "寬度 單位爲CM 不超過3位小數";
                        MKT_Height.ToolTip = "高度 單位爲CM 不超過3位小數";
                        MKT_Unit_of_Dimension.ToolTip = "長度/寬度/高度的尺寸單位 默認為CM";
                        MKT_Gross_Weight.ToolTip = "毛重 不超過3位小數";
                        MKT_Net_Weight.ToolTip = "淨重 同毛重 不超過3位小數";
                        MKT_Delivering_plant.ToolTip = "交貨工廠（自有/外部）默認為KT1D";
                        MKT_Marterial_Group.ToolTip = "物料組 默認爲GPM";

                    }
                    if (FORM == "FORM-T009" || FORM == "FORM-T012")
                    {
                        MKT_SKU_BPCS_Code.ToolTip = "物料編號";
                        MKT_Plant.ToolTip = "需要擴展的工廠 ";
                        MKT_Sales_Org.ToolTip = "銷售組織 默認爲TW01";
                        MKT_Distr_Channel.ToolTip = "分銷渠道 默認爲10";
                        MKT_Base_Unit_Of_Measure.ToolTip = "基本計量單位 默認爲PC";
                        MKT_Division.ToolTip = "産品組 默認為10";
                        MKT_Lab_Office.ToolTip = "實驗室/設計室";
                        MKT_GenItemCatGroup.ToolTip = "普通項目類別組 默認爲NORM";
                        MKT_Size_dimension.ToolTip = "大小/量綱 默認為KG";
                        MKT_Profit_Center.ToolTip = "利潤中心 必填";
                        MKT_Length.ToolTip = "長度 單位爲CM 不超過三位小數";
                        MKT_Width.ToolTip = "寬度 單位爲CM 不超過三位小數";
                        MKT_Height.ToolTip = "高度 單位爲CM 不超過三位小數";
                        MKT_Unit_of_Dimension.ToolTip = "長度/寬度/高度的尺寸單位 ";
                        MKT_Gross_Weight.ToolTip = "毛重 不超过三位小数";
                        MKT_EAN_UPC.ToolTip = "Barcode";
                        MKT_EAN_Category.ToolTip = "國際商品編碼的類別 若EAN/UPC需要填寫，則默認為K0";
                        MKT_Product_Cluster.ToolTip = "産品綫";
                        MKT_Volume.ToolTip = "體積 即容量: Liter, 不超過三位小數";
                        MKT_Net_Weight.ToolTip = "淨重 不超過三位小數";
                        MKT_Material_Group_4.ToolTip = "物料组4";
                        MKT_Marterial_Group.ToolTip = "物料組 ";
                        MKT_Easy_Order_Entry_Code.ToolTip = "同Trade Code";
                        MKT_Delivering_plant.ToolTip = "交貨工廠（自有/外部）";
                        MKT_GenItemCatGroup.ToolTip = "普通項目類別組";
                    }
                    if (FORM == "FORM-T006")
                    {
                        MKT_Product_Cluster.ToolTip = "産品綫";
                        MKT_Color_Code.ToolTip = "色號,MTO必填";
                        MKT_Pack_Size.ToolTip = "包裝大小 PACK Size 單位爲L";
                        MKT_FINI_Code.ToolTip = "物料編號 MTO規則爲：産品綫-色號包裝";
                        MKT_Material_Attributes_1.ToolTip = "物料屬性1";
                        MKT_Material_Attributes_2.ToolTip = "物料屬性2";
                        MKT_Material_Attributes_3.ToolTip = "物料屬性3";
                        MKT_Dchain_spec_status.ToolTip = "制定分銷鏈的物料狀態 Warning: 限制下單，謹慎選擇";
                        MKT_Calendar1.ToolTip = "來自指定分銷鏈的物料狀態是有效的日期\nWarning: 限制下單，謹慎選擇";
                        MKT_Sales_Org.ToolTip = "銷售組織 默認爲TW01";
                        MKT_Distr_Channel.ToolTip = "分銷渠道:默認都維護，10－客戶，20-Internal Company";
                        MKT_Base_Unit_Of_Measure.ToolTip = "基本計量單位 默認爲PC";
                        MKT_Division.ToolTip = "産品組 默認為10";
                        MKT_Lab_Office.ToolTip = "實驗室/設計室 即MM070:Lab./Office";
                        MKT_GenItemCatGroup.ToolTip = "普通項目類別組 默認爲NORM";
                        MKT_Size_dimension.ToolTip = "大小/量綱 默認為L";
                        MKT_Profit_Center.ToolTip = "利潤中心 必填";
                        MKT_Length.ToolTip = "長度 單位爲CM";
                        MKT_Width.ToolTip = "寬度 單位爲CM";
                        MKT_Height.ToolTip = "高度 單位爲CM";
                        MKT_Unit_of_Dimension.ToolTip = "長度/寬度/高度的尺寸單位 默認為CM";
                        MKT_Gross_Weight.ToolTip = "毛重,不超過三位小數";
                        MKT_Product_Line_Code.ToolTip = "産品綫";
                        MKT_Volume.ToolTip = "體積 即容量: Liter, 不超過三位小數";
                        MKT_Net_Weight.ToolTip = "淨重 不超過三位小數";
                        MKT_Min_dely_qty.ToolTip = "最小出貨量";
                        MKT_Min_order_qty.ToolTip = "最小訂單量";
                        MKT_Item_category_group.ToolTip = "項目類別組\n默認為NORM,Tinting爲Z003";
                        MKT_Description_EN.ToolTip = "物料英文描述\n不超過40個字節，Fini Code＋英文描述即MM070: Material short text ENGLISH";
                        MKT_Description_ZF.ToolTip = "物料中文描述\n不超過40個字節，Fini Code＋中文描述即MM070: Additional language short text";
                        MKT_Delivering_plant.ToolTip = "交貨工廠(自有/外部),默認爲KT1D";

                    }
                    if (FORM == "FORM-T010")
                    {
                        MKT_Product_Cluster.ToolTip = "産品綫";
                        MKT_Color_Code.ToolTip = "色號,MTO必填";
                        MKT_Pack_Size.ToolTip = "包裝大小 PACK Size 單位爲L";
                        MKT_FINI_Code.ToolTip = "物料編號 MTO規則爲：産品綫-色號空格包裝";
                        MKT_Material_Attributes_1.ToolTip = "物料屬性1";
                        MKT_Material_Attributes_2.ToolTip = "物料屬性2";
                        MKT_Material_Attributes_3.ToolTip = "物料屬性3";
                        MKT_Dchain_spec_status.ToolTip = "制定分銷鏈的物料狀態 Warning: 限制下單，謹慎選擇";
                        MKT_Calendar1.ToolTip = "來自指定分銷鏈的物料狀態是有效的日期\nWarning: 限制下單，謹慎選擇";
                        MKT_Sales_Org.ToolTip = "銷售組織 默認爲TW01";
                        //MKT_Distr_Channel.ToolTip = "分銷渠道:默認都維護，10－客戶，20-Internal Company";
                        MKT_Base_Unit_Of_Measure.ToolTip = "基本計量單位 默認爲PC";
                        MKT_Division.ToolTip = "産品組 默認為10";
                        MKT_Lab_Office.ToolTip = "實驗室/設計室 即MM070:Lab./Office";
                        MKT_GenItemCatGroup.ToolTip = "普通項目類別組 默認爲NORM";
                        MKT_Size_dimension.ToolTip = "大小/量綱 默認為L";
                        MKT_Profit_Center.ToolTip = "利潤中心 必填";
                        MKT_Length.ToolTip = "長度 單位爲CM";
                        MKT_Width.ToolTip = "寬度 單位爲CM";
                        MKT_Height.ToolTip = "高度 單位爲CM";
                        MKT_Unit_of_Dimension.ToolTip = "長度/寬度/高度的尺寸單位 默認為CM";
                        MKT_Gross_Weight.ToolTip = "毛重,不超過三位小數";
                        MKT_Product_Line_Code.ToolTip = "産品綫";
                        MKT_Volume.ToolTip = "體積 即容量: Liter, 不超過三位小數";
                        MKT_Net_Weight.ToolTip = "淨重 不超過三位小數";
                        MKT_Min_dely_qty.ToolTip = "最小出貨量";
                        MKT_Min_order_qty.ToolTip = "最小訂單量";
                        MKT_Item_category_group.ToolTip = "項目類別組 默認為NORM";
                        //MKT_Description_EN.ToolTip = "物料英文描述\nPC+産品名稱＋産品描述＋SKU＋産品名稱不超過40個字節";
                        //MKT_Description_ZF.ToolTip = "物料中文描述\n産評名稱＋産品描述＋SKU不超過40個字節";
                        MKT_Description_EN.ToolTip = "物料英文描述，Brand Code+産品名稱＋産品描述＋Pack size,不超過40個字節";
                        MKT_Description_ZF.ToolTip = "物料中文描述，Brand Code+産品名稱＋産品描述＋Pack size,不超過40個字節";
                        MKT_Delivering_plant.ToolTip = "交貨工廠(自有/外部),默認爲KT1D";

                    }
                    if (FORM == "FORM-T018")
                    {
                        MKT_Sales_Org.ToolTip = "銷售組織 默認爲TW01";
                        MKT_Distr_Channel.ToolTip = "分銷渠道:10－客戶，20-Internal Company";
                        MKT_Product_Hierarchy.ToolTip = "産品層次 Only for DECO";
                        MKT_Departure_country.ToolTip = "發貨國 默認為TW";
                        MKT_Tax_category.ToolTip = "默認為MWST";
                        MKT_Tax_classification.ToolTip = "物料的稅分類 默認為1";
                        MKT_Cash_Discount.ToolTip = "現金折扣標志 默認不打勾";
                        MKT_Acct_Assignment_Grp.ToolTip = "科目設置組 默認為08";
                        MKT_Delivering_plant.ToolTip = "交貨工廠（自有/外部） 默認為KT1D或KT2D";
                        MKT_Item_category_group.ToolTip = "項目類別組 默認為NORM";
                        MKT_Easy_Order_Entry_Code.ToolTip = " =A-coat+Pack Size";
                        //MKT_Easy_Order_Entry.ToolTip = "=A-coat+Pack Size";
                    }
                    if (FORM == "FORM-T002")
                    {
                        MKT_Plant.ToolTip = "";
                        MKT_Description_EN.ToolTip = "物料英文描述Brand Code+Fini Code＋英文描述，不超過40個字節 即MM070: Additional language short text";
                        MKT_Description_ZF.ToolTip = "物料中文描述 不超過40個字節，FINI Code+中文描述，即MM070：Additional language short text";
                        MKT_Base_Unit_Of_Measure.ToolTip = "基本計量單位，默認爲PC";
                        MKT_Marterial_Group.ToolTip = "物料組";
                        MKT_Division.ToolTip = "産品組，默認爲10";
                        MKT_Lab_Office.ToolTip = "實驗室/設計室，即MM070:Lab./Office";
                        MKT_Length.ToolTip = "長度";
                        MKT_Width.ToolTip = "寬度";
                        MKT_Height.ToolTip = "高度";
                        MKT_Unit_of_Dimension.ToolTip = "單位，默認爲CM";
                        MKT_GenItemCatGroup.ToolTip = "普通項目類別組，默認爲DIEN";
                        MKT_Tax_classification.ToolTip = "物料的稅分類，默認爲1";
                        MKT_Cash_Discount.ToolTip = "現金折扣標志";
                        MKT_Acct_Assignment_Grp.ToolTip = "科目設置組，默認爲01";
                        MKT_Easy_Order_Entry_Code.ToolTip = "同SERV Code(Old Material Code)";
                        MKT_Profit_Center.ToolTip = "利潤中心";
                    }
                    break;
            }
        }
        #endregion

        #region 方法 DataValidation(数据验证)
        public List<string> DataValidation(mdc_Material mt, string Sheet)
        {
            //如果当前 Tabs 是隐藏的情况，退出
            List<string> vald_s = new List<string>();
            if (!(IsUsed && (Action == "C" || Action == "E")))
            {
                return vald_s;
            }
            Anthem.Label lb = new Anthem.Label(); lb.ForeColor = Color.Blue; lb.Attributes["v"] = "1";
            List<Regular> regs = new List<Regular>();
            switch (Category)
            {
                case "SEFI":
                    if (TaskAPI.Process == "PKG Sefi Code BOM Application" && !(Page as PMDC).Code_Selected.Checked)
                    {
                        return vald_s;
                    }
                    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Profit_Center_L, mt.MKT_Profit_Center, Sheet + "Profit Center (Channel)为必填");
                    break;
                case "RAW":
                    break;
                case "PACK":
                    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Lab_Office_L, mt.MKT_Lab_Office, Sheet + "Lab/Office为必填");
                    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Marterial_Group_L, mt.MKT_Marterial_Group, Sheet + "Material Group为必填");
                    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_1, mt.MKT_Description_EN_1, Sheet + "包装产品容积(4bit) EN.为必填");
                    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_1, mt.MKT_Description_ZH_1, Sheet + "包装产品容积(4bit) ZH.为必填");
                    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_2, mt.MKT_Description_EN_2, Sheet + "包装中英文描述(24bit) EN.为必填");
                    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_2, mt.MKT_Description_ZH_2, Sheet + "包装中英文描述(24bit) ZH.为必填");
                    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Exemption_L, mt.MKT_Exemption, Sheet + "Version number为必填");
                    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Issdate_L, mt.MKT_Issdate, Sheet + "Effective date为必填");
                    if (TaskAPI.Process == "PKG PACK Code Application")
                    {
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_SKU_BPCS_Code_L, mt.MKT_SKU_BPCS_Code, Sheet + "BPCS Code为必填");
                    }
                    if (TaskAPI.Process == "NPL Master Data Application")
                    {
                        if (mt.MKT_Description_EN_3.Length + mt.MKT_Description_ZH_3.Length + mt.MKT_Description_EN_4.Length + mt.MKT_Description_ZH_4.Length < 1)
                        {
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, lb, mt.MKT_Description_EN_3, Sheet + "包装类型I EN.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, lb, mt.MKT_Description_ZH_3, Sheet + "包装类型I ZH.为必填");
                        }
                        if (mt.MKT_Description_EN_4.Length + mt.MKT_Description_ZH_4.Length > 0)
                        {
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, lb, mt.MKT_Description_EN_4, Sheet + "包装类型II(12bit) EN.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, lb, mt.MKT_Description_ZH_4, Sheet + "包装类型II(12bit) ZH.为必填");
                        }
                    }
                    else
                    {
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_3, mt.MKT_Description_EN_3, Sheet + "包装类型I EN.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_3, mt.MKT_Description_ZH_3, Sheet + "包装类型I ZH.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_4, mt.MKT_Description_EN_4, Sheet + "包装类型II(12bit) EN.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_4, mt.MKT_Description_ZH_4, Sheet + "包装类型II(12bit) ZH.为必填");
                    }
                    if (TaskAPI.Process == "FINI Code Application")
                    {
                        return vald_s;
                    }
                    break;

                case "FINI":
                    if (this.TaskAPI.Process == "HK ADVE Code Application")
                    {
                        if ((Page as PMDC).rd_HK_ADVE_Biz_Type.SelectedValue == "0" && FORM == "FORM-065-1")
                        {
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_SKU_BPCS_Code_L, mt.MKT_SKU_BPCS_Code, Sheet + "ADVE Code 为必填");

                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_FINI_Code_L, mt.MKT_FINI_Code, Sheet + "Fini code为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Sales_Org_L, mt.MKT_Sales_Org, Sheet + "Sales Org.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Distr_Channel_L, mt.MKT_Distr_Channel, Sheet + "Distr.Channel为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Volume_Rebate_Group_L, mt.MKT_Volume_Rebate_Group, Sheet + "Volume rebate group为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Group_4_L, mt.MKT_Material_Group_4, Sheet + "Material group 4为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Hierarchy_L, mt.MKT_Product_Hierarchy, Sheet + "Product Hierarchy为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Profit_Center_L, mt.MKT_Profit_Center, Sheet + "Profit Center (Channel)为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Line_Code_L, mt.MKT_Product_Line_Code, Sheet + "Product Line Code为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.)为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZH_L, mt.MKT_Description_ZH, Sheet + "Description 2 (ZH.)为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZF_L, mt.MKT_Description_ZF, Sheet + "Description 3 (ZF.)为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Size_dimension_L, mt.MKT_Size_dimension, Sheet + "Size/dimension为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Is_Generic_L, mt.MKT_Is_Generic, Sheet + "是否需要調色为必填");

                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_1, mt.MKT_Description_EN_1, Sheet + "包装产品容积(4bit) EN.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_1, mt.MKT_Description_ZH_1, Sheet + "包装产品容积(4bit) ZH.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_2, mt.MKT_Description_EN_2, Sheet + "包装中英文描述(24bit) EN.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_2, mt.MKT_Description_ZH_2, Sheet + "包装中英文描述(24bit) ZH.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_3, mt.MKT_Description_EN_3, Sheet + "包装类型I EN.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_3, mt.MKT_Description_ZH_3, Sheet + "包装类型I ZH.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_4, mt.MKT_Description_EN_4, Sheet + "包装类型II(12bit) EN.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_4, mt.MKT_Description_ZH_4, Sheet + "包装类型II(12bit) ZH.为必填");

                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Lab_Office_L, mt.MKT_Lab_Office, Sheet + "Lab/Office为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_IsSale_L, mt.MKT_IsSale, Sheet + "是否需要工厂调色及售卖?为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Group_L, mt.MKT_Product_Group, Sheet + "Product Group为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Min_dely_qty_L, mt.MKT_Min_dely_qty, Sheet + "Min. dely qty 为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Min_order_qty_L, mt.MKT_Min_order_qty, Sheet + "Min.order qty 为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Delivery_unit_L, mt.MKT_Delivery_unit, Sheet + "Delivery unit 为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Delivering_plant_L, mt.MKT_Delivering_plant, Sheet + "Delivering Plant 为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Order_unit_L, mt.MKT_Order_unit, Sheet + "Order Unit 为必填");
                        }

                        if ((Page as PMDC).rd_HK_ADVE_Biz_Type.SelectedValue == "1" && FORM == "FORM-065-2")
                        {
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_SKU_BPCS_Code_L, mt.MKT_SKU_BPCS_Code, Sheet + "ADVE Code 为必填");

                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_FINI_Code_L, mt.MKT_FINI_Code, Sheet + "Fini code为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Sales_Org_L, mt.MKT_Sales_Org, Sheet + "Sales Org.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Distr_Channel_L, mt.MKT_Distr_Channel, Sheet + "Distr.Channel为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Volume_Rebate_Group_L, mt.MKT_Volume_Rebate_Group, Sheet + "Volume rebate group为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Group_4_L, mt.MKT_Material_Group_4, Sheet + "Material group 4为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Hierarchy_L, mt.MKT_Product_Hierarchy, Sheet + "Product Hierarchy为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Profit_Center_L, mt.MKT_Profit_Center, Sheet + "Profit Center (Channel)为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Line_Code_L, mt.MKT_Product_Line_Code, Sheet + "Product Line Code为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.)为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZH_L, mt.MKT_Description_ZH, Sheet + "Description 2 (ZH.)为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZF_L, mt.MKT_Description_ZF, Sheet + "Description 3 (ZF.)为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Size_dimension_L, mt.MKT_Size_dimension, Sheet + "Size/dimension为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Is_Generic_L, mt.MKT_Is_Generic, Sheet + "是否需要調色为必填");

                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_1, mt.MKT_Description_EN_1, Sheet + "包装产品容积(4bit) EN.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_1, mt.MKT_Description_ZH_1, Sheet + "包装产品容积(4bit) ZH.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_2, mt.MKT_Description_EN_2, Sheet + "包装中英文描述(24bit) EN.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_2, mt.MKT_Description_ZH_2, Sheet + "包装中英文描述(24bit) ZH.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_3, mt.MKT_Description_EN_3, Sheet + "包装类型I EN.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_3, mt.MKT_Description_ZH_3, Sheet + "包装类型I ZH.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_4, mt.MKT_Description_EN_4, Sheet + "包装类型II(12bit) EN.为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_4, mt.MKT_Description_ZH_4, Sheet + "包装类型II(12bit) ZH.为必填");

                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Lab_Office_L, mt.MKT_Lab_Office, Sheet + "Lab/Office为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_IsSale_L, mt.MKT_IsSale, Sheet + "是否需要工厂调色及售卖?为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Group_L, mt.MKT_Product_Group, Sheet + "Product Group为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Min_dely_qty_L, mt.MKT_Min_dely_qty, Sheet + "Min. dely qty 为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Min_order_qty_L, mt.MKT_Min_order_qty, Sheet + "Min.order qty 为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Delivery_unit_L, mt.MKT_Delivery_unit, Sheet + "Delivery unit 为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Delivering_plant_L, mt.MKT_Delivering_plant, Sheet + "Delivering Plant 为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Order_unit_L, mt.MKT_Order_unit, Sheet + "Order Unit 为必填");
                        }

                        vald_s.AddRange(Validation(regs));
                        return vald_s;
                    }
                    else if (FORM == "FORM-064")
                    {
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_SKU_BPCS_Code_L, mt.MKT_SKU_BPCS_Code, Sheet + "Trade Code 为必填");

                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_FINI_Code_L, mt.MKT_FINI_Code, Sheet + "Fini code为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Sales_Org_L, mt.MKT_Sales_Org, Sheet + "Sales Org.为必填");
                        //if (MKT_Distr_Channel_L.Visible && FORM != "FORM-T018")
                        //{
                        //    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Distr_Channel_L, mt.MKT_Distr_Channel, Sheet + "Distr.Channel为必填");
                        //}
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Volume_Rebate_Group_L, mt.MKT_Volume_Rebate_Group, Sheet + "Volume rebate group为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Group_4_L, mt.MKT_Material_Group_4, Sheet + "Material group 4为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Hierarchy_L, mt.MKT_Product_Hierarchy, Sheet + "Product Hierarchy为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Profit_Center_L, mt.MKT_Profit_Center, Sheet + "Profit Center (Channel)为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Line_Code_L, mt.MKT_Product_Line_Code, Sheet + "Product Line Code为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.)为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZH_L, mt.MKT_Description_ZH, Sheet + "Description 2 (ZH.)为必填");

                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZF_L, mt.MKT_Description_ZF, Sheet + "Description 3 (ZF.)为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Size_dimension_L, mt.MKT_Size_dimension, Sheet + "Size/dimension为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Is_Generic_L, mt.MKT_Is_Generic, Sheet + "是否需要調色为必填");

                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_1, mt.MKT_Description_EN_1, Sheet + "包装产品容积(4bit) EN.为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_1, mt.MKT_Description_ZH_1, Sheet + "包装产品容积(4bit) ZH.为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_2, mt.MKT_Description_EN_2, Sheet + "包装中英文描述(24bit) EN.为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_2, mt.MKT_Description_ZH_2, Sheet + "包装中英文描述(24bit) ZH.为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_3, mt.MKT_Description_EN_3, Sheet + "包装类型I EN.为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_3, mt.MKT_Description_ZH_3, Sheet + "包装类型I ZH.为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_4, mt.MKT_Description_EN_4, Sheet + "包装类型II(12bit) EN.为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_4, mt.MKT_Description_ZH_4, Sheet + "包装类型II(12bit) ZH.为必填");

                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Lab_Office_L, mt.MKT_Lab_Office, Sheet + "Lab/Office为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_IsSale_L, mt.MKT_IsSale, Sheet + "是否需要工厂调色及售卖?为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Group_L, mt.MKT_Product_Group, Sheet + "Product Group为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Min_dely_qty_L, mt.MKT_Min_dely_qty, Sheet + "Min. dely qty 为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Min_order_qty_L, mt.MKT_Min_order_qty, Sheet + "Min.order qty 为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Delivery_unit_L, mt.MKT_Delivery_unit, Sheet + "Delivery unit 为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Delivering_plant_L, mt.MKT_Delivering_plant, Sheet + "Delivering Plant 为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Order_unit_L, mt.MKT_Order_unit, Sheet + "Order Unit 为必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_SKU_BPCS_Code_L, mt.MKT_SKU_BPCS_Code, Sheet + "SKU BPCS Code为必填");
                        vald_s.AddRange(Validation(regs));
                        return vald_s;
                    }
                    else if (FORM == "FORM-014")
                    {
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_SKU_BPCS_Code_L, mt.MKT_SKU_BPCS_Code, Sheet + "ADVE Code 为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Base_Unit_Of_Measure_L, mt.MKT_Base_Unit_Of_Measure, Sheet + "Base Unit Of Measure 为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Marterial_Group_L, mt.MKT_Marterial_Group, Sheet + "Marterial Group 为必填");

                    }
                    else if (FORM == "FORM-015")
                    {

                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_SKU_BPCS_Code_L, mt.MKT_SKU_BPCS_Code, Sheet + "Trade Code为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.)为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZH_L, mt.MKT_Description_ZH, Sheet + "Description 2 (ZH.)为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Lab_Office_L, mt.MKT_Lab_Office, Sheet + "Lab/Office为必填");
                        vald_s.AddRange(Validation(regs));
                        return vald_s;
                    }
                    else if (FORM == "FORM-T001")
                    {
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_SKU_BPCS_Code_L, mt.MKT_SKU_BPCS_Code, Sheet + "ADVE Code(Old Material Code) 必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Profit_Center_L, mt.MKT_Profit_Center, Sheet + "Profit Center 必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.)爲必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZF_L, mt.MKT_Description_ZF, Sheet + "Description 2 (ZF.)爲必填");
                        if (!string.IsNullOrEmpty(MKT_Length.Text))
                        {
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Length_L, mt.MKT_Length, Sheet + "Lenth不超過三位小數");
                        }
                        if (!string.IsNullOrEmpty(MKT_Width.Text))
                        {
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Width_L, mt.MKT_Width, Sheet + "Width不超過三位小數");
                        }
                        if (!string.IsNullOrEmpty(MKT_Height.Text))
                        {
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Height_L, mt.MKT_Height, Sheet + "Height不超過三位小數");
                        }
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Length_L, mt.MKT_Length, Sheet + "Length 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Width_L, mt.MKT_Width, Sheet + "Width 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Height_L, mt.MKT_Height, Sheet + "Height 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Unit_of_Dimension_L, mt.MKT_Unit_of_Dimension, Sheet + "Unit of Dimension 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Gross_Weight_L, mt.MKT_Gross_Weight, Sheet + "Gross Weight 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.)爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZF_L, mt.MKT_Description_ZF, Sheet + "Description 3 (ZF.)爲必填");
                        vald_s.AddRange(Validation(regs));
                        return vald_s;
                    }
                    else if (FORM == "FORM-T002")
                    {
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_SKU_BPCS_Code_L, mt.MKT_SKU_BPCS_Code, Sheet + "SERV Code(Old Material Code) 必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Plant_L, mt.MKT_Plant, Sheet + "Plant 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.) 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZF_L, mt.MKT_Description_ZF, Sheet + "Description 2 (ZF.) 必填");
                        if (MKT_Length.Visible && !string.IsNullOrEmpty(mt.MKT_Length))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Length, Sheet + "Length不超過三位小數"));
                        }
                        //else
                        //    akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Length_L, mt.MKT_Length, Sheet + "Lenth 必填 不超過三位小數");

                        if (MKT_Width.Visible && !string.IsNullOrEmpty(mt.MKT_Width))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Width, Sheet + "Width不超過三位小數"));
                        }
                        //else
                        //    akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Width_L, mt.MKT_Width, Sheet + "Width 必填 不超過三位小數");

                        if (MKT_Height.Visible && !string.IsNullOrEmpty(mt.MKT_Height))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Height, Sheet + "Height不超過三位小數"));
                        }
                        //else
                        //    akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Height_L, mt.MKT_Height, Sheet + "Height 必填 不超過三位小數");
                        vald_s.AddRange(Validation(regs));
                        return vald_s;
                    }
                    else if (FORM == "FORM-T009")
                    {
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Profit_Center_L, mt.MKT_Profit_Center, Sheet + "Profit Center必填");
                        if (!string.IsNullOrEmpty(mt.MKT_Length))
                        {
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Length_L, mt.MKT_Length, Sheet + "Length不超過三位小數");
                        }
                        if (!string.IsNullOrEmpty(mt.MKT_Width))
                        {
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Width_L, mt.MKT_Width, Sheet + "Width不超過三位小數");
                        }
                        if (!string.IsNullOrEmpty(mt.MKT_Height))
                        {
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Height_L, mt.MKT_Height, Sheet + "Height不超過三位小數");
                        }
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Length_L, mt.MKT_Length, Sheet + "Length 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Width_L, mt.MKT_Width, Sheet + "Width 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Height_L, mt.MKT_Height, Sheet + "Height 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Unit_of_Dimension_L, mt.MKT_Unit_of_Dimension, Sheet + "Unit of Dimension 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Gross_Weight_L, mt.MKT_Gross_Weight, Sheet + "Gross Weight 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Volume_L, mt.MKT_Volume, Sheet + "Volume 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Net_Weight_L, mt.MKT_Net_Weight, Sheet + "Net Weight 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Group_L, mt.MKT_Product_Group, Sheet + "Product Group 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Cluster_L, mt.MKT_Product_Cluster, Sheet + "Z_Product Cluster 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Hierarchy_L, mt.MKT_Product_Hierarchy, Sheet + "Product Hierarchy 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_EAN_Category_L, mt.MKT_EAN_Category, Sheet + "EAN Category 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.)为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZF_L, mt.MKT_Description_ZF, Sheet + "Description 3 (ZF.)为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_SKU_BPCS_Code_L, mt.MKT_SKU_BPCS_Code, Sheet + "Trade Code(Old Material Code) 必填");
                        vald_s.AddRange(Validation(regs));
                        return vald_s;
                    }
                    else if (FORM == "FORM-T012")
                    {
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_SKU_BPCS_Code_L, mt.MKT_SKU_BPCS_Code, Sheet + "Trade Code(Old Material Code) 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Line_Code_L, mt.MKT_Product_Line_Code, Sheet + "Z_Product Cluster 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Hierarchy_L, mt.MKT_Product_Hierarchy, Sheet + "Product Hierarchy 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.)为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZF_L, mt.MKT_Description_ZF, Sheet + "Description 3 (ZF.)为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Group_L, mt.MKT_Product_Group, Sheet + "Product Group 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Group_4_L, mt.MKT_Material_Group_4, Sheet + "Material Group 4 爲必填");
                        //akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Length_L, mt.MKT_Length, Sheet + "Lenth不超過三位小數");
                        //akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Width_L, mt.MKT_Width, Sheet + "Width不超過三位小數");
                        //akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Height_L, mt.MKT_Height, Sheet + "Height不超過三位小數");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Lab_Office_L, mt.MKT_Lab_Office, Sheet + "Lab/Office 必選");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Unit_of_Dimension_L, mt.MKT_Unit_of_Dimension, Sheet + "Unit of Dimension 必填");
                        //akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Gross_Weight_L, mt.MKT_Gross_Weight, Sheet + "Gross Weight 必填不超過三位小數");
                        //akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Volume_L, mt.MKT_Volume, Sheet + "Volume 必填不超過三位小數");
                        //akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Net_Weight_L, mt.MKT_Net_Weight, Sheet + "Net Weight 必填不超過三位小數");

                        if (MKT_Length.Visible && !string.IsNullOrEmpty(mt.MKT_Length))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Length, Sheet + "Length不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Length_L, mt.MKT_Length, Sheet + "Lenth 必填 不超過三位小數");

                        if (MKT_Width.Visible && !string.IsNullOrEmpty(mt.MKT_Width))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Width, Sheet + "Width不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Width_L, mt.MKT_Width, Sheet + "Width 必填 不超過三位小數");

                        if (MKT_Height.Visible && !string.IsNullOrEmpty(mt.MKT_Height))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Height, Sheet + "Height不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Height_L, mt.MKT_Height, Sheet + "Height 必填 不超過三位小數");

                        if (!string.IsNullOrEmpty(mt.MKT_Gross_Weight))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Gross_Weight, Sheet + "Gross Weight 不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Gross_Weight_L, mt.MKT_Gross_Weight, Sheet + "Gross Weight 必填不超過三位小數");
                        if (!string.IsNullOrEmpty(mt.MKT_Net_Weight))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Net_Weight, Sheet + "Net Weight不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Net_Weight_L, mt.MKT_Net_Weight, Sheet + "Net Weight必填不超過三位小數");
                        if (!string.IsNullOrEmpty(mt.MKT_Volume))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Volume, Sheet + "Volume不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Volume_L, mt.MKT_Volume, Sheet + "Volume必填不超過三位小數");

                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_EAN_UPC_L, mt.MKT_EAN_UPC, Sheet + " EAN/UPC 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Acct_Assignment_Grp_L, mt.MKT_Acct_Assignment_Grp, Sheet + " Acct Assignment Grp 必填");

                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Unit_Of_Measure_X_L, (mt.MKT_Unit_Of_Measure_X + "").Trim(), Sheet + "Denominator 第1行 必填");
                        akzo_RegularCheck(ref regs, RegularExp.Integer, MKT_Unit_Of_Measure_Y_L, (mt.MKT_Unit_Of_Measure_Y + "").Trim(), Sheet + "Numerator  第1行 必填 为整数 ");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Unit_Of_Measure_X_L, (mt.MKT_Unit_Of_Measure_X_1 + "").Trim(), Sheet + "Denominator 第2行 必填");
                        akzo_RegularCheck(ref regs, RegularExp.Integer, MKT_Unit_Of_Measure_Y_L, (mt.MKT_Unit_Of_Measure_Y_1 + "").Trim(), Sheet + "Numerator  第2行 必填 为整数 ");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Marterial_Group_L, mt.MKT_Marterial_Group, Sheet + "Material group 为必填");

                        vald_s.AddRange(Validation(regs));

                        return vald_s;
                    }
                    else if (FORM == "FORM-TW-007")
                    {

                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Cluster_L, mt.MKT_Product_Cluster, Sheet + "Z_Product Cluster 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_FINI_Code_L, mt.MKT_FINI_Code, Sheet + "FINI Code(Old Material Code) 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Group_4_L, mt.MKT_Material_Group_4, Sheet + "Material Group 4 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Hierarchy_L, mt.MKT_Product_Hierarchy, Sheet + "Product Hierarchy 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Profit_Center_L, mt.MKT_Profit_Center, Sheet + "Profit Center 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.)爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZH_L, mt.MKT_Description_ZH, Sheet + "Description 2 (ZF.)为必填");

                        if (MKT_Length.Visible && !string.IsNullOrEmpty(mt.MKT_Length))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Length, Sheet + "Length不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Length_L, mt.MKT_Length, Sheet + "Lenth 必填 不超過三位小數");

                        if (MKT_Width.Visible && !string.IsNullOrEmpty(mt.MKT_Width))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Width, Sheet + "Width不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Width_L, mt.MKT_Width, Sheet + "Width 必填 不超過三位小數");

                        if (MKT_Height.Visible && !string.IsNullOrEmpty(mt.MKT_Height))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Height, Sheet + "Height不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Height_L, mt.MKT_Height, Sheet + "Height 必填 不超過三位小數");
                        if (!string.IsNullOrEmpty(mt.MKT_Gross_Weight))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Gross_Weight, Sheet + "Gross Weight 不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Gross_Weight_L, mt.MKT_Gross_Weight, Sheet + "Gross Weight 必填不超過三位小數");
                        if (!string.IsNullOrEmpty(mt.MKT_Net_Weight))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Net_Weight, Sheet + "Net Weight不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Net_Weight_L, mt.MKT_Net_Weight, Sheet + "Net Weight必填不超過三位小數");
                        if (!string.IsNullOrEmpty(mt.MKT_Volume))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Volume, Sheet + "Volume不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Volume_L, mt.MKT_Volume, Sheet + "Volume必填不超過三位小數");

                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_EAN_UPC_L, mt.MKT_EAN_UPC, Sheet + " EAN/UPC 必填");

                        //akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Gross_Weight_L, mt.MKT_Gross_Weight, Sheet + "Gross Weight 必填 不超過三位小數");
                        //akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Net_Weight_L, mt.MKT_Net_Weight, Sheet + "Net Weight 必填 不超過三位小數");
                        //akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Volume_L, mt.MKT_Volume, Sheet + "Volume 必填 不超過三位小數");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Attributes_1_L, mt.MKT_Material_Attributes_1, Sheet + "Material Attributes 1 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Attributes_2_L, mt.MKT_Material_Attributes_2, Sheet + "Material Attributes 2 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Attributes_3_L, mt.MKT_Material_Attributes_3, Sheet + "Material Attributes 3 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Group_L, mt.MKT_Product_Group, Sheet + "Product Group 必填");

                        vald_s.AddRange(Validation(regs));

                        return vald_s;
                    }
                    else if (FORM == "FORM-TW-010")
                    {
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Distr_Channel_L, mt.MKT_Distr_Channel, Sheet + "Distr. Channel 必選");
                        //if (!string.IsNullOrEmpty(MKT_Volume.Text))
                        //{
                        //    akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Volume_L, mt.MKT_Volume, Sheet + "Volume不超過三位小數");
                        //}
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Attributes1_L, mt.MKT_TW_Attributes1, Sheet + "Attributes1 必選");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Attributes2_L, mt.MKT_TW_Attributes2, Sheet + "Attributes2 必選");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_FINI_Code_L, mt.MKT_FINI_Code, Sheet + "FINI Code (Old Material Code) 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Distr_Channel_L, mt.MKT_Distr_Channel, Sheet + "Distr. Channel 必選");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.) 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZH_L, mt.MKT_Description_ZH, Sheet + "Description 2 (ZF.) 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Group_L, mt.MKT_Product_Group, Sheet + "Product Group 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Group_4_L, mt.MKT_Material_Group_4, Sheet + "Material group 4 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Profit_Center_L, mt.MKT_Profit_Center, Sheet + "Profit Center 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Lab_Office_L, mt.MKT_Lab_Office, Sheet + "Lab/Office 必選");
                        //akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Volume_L, mt.MKT_Volume, Sheet + "Volume 必填 不超過三位小數");
                        //akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Gross_Weight_L, mt.MKT_Gross_Weight, Sheet + "Gross Weight 必填 不超過三位小數");
                        //akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Net_Weight_L, mt.MKT_Net_Weight, Sheet + "Net Weight 必填 不超過三位小數");
                        if (!string.IsNullOrEmpty(mt.MKT_Gross_Weight))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Gross_Weight, Sheet + "Gross Weight 不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Gross_Weight_L, mt.MKT_Gross_Weight, Sheet + "Gross Weight 必填不超過三位小數");
                        if (!string.IsNullOrEmpty(mt.MKT_Net_Weight))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Net_Weight, Sheet + "Net Weight不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Net_Weight_L, mt.MKT_Net_Weight, Sheet + "Net Weight必填不超過三位小數");
                        if (!string.IsNullOrEmpty(mt.MKT_Volume))
                        {
                            regs.Add(new Regular(RegularExp.Digit3, mt.MKT_Volume, Sheet + "Volume不超過三位小數"));
                        }
                        else
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Volume_L, mt.MKT_Volume, Sheet + "Volume必填不超過三位小數");

                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_EAN_UPC_L, mt.MKT_EAN_UPC, Sheet + " EAN/UPC 必填");

                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Unit_Of_Measure_X_L, (mt.MKT_Unit_Of_Measure_X + "").Trim(), Sheet + "Denominator 第1行 必填");
                        akzo_RegularCheck(ref regs, RegularExp.Integer, MKT_Unit_Of_Measure_Y_L, (mt.MKT_Unit_Of_Measure_Y + "").Trim(), Sheet + "Numerator  第1行 必填 为整数 ");

                        vald_s.AddRange(Validation(regs));
                        return vald_s;
                    }
                    else if (FORM == "FORM-T006")
                    {
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Cluster_L, mt.MKT_Product_Cluster, Sheet + "Z_Product Cluster 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Color_Code_L, mt.MKT_Color_Code, Sheet + "Color Code 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Pack_Size_L, mt.MKT_Pack_Size, Sheet + "Pack Size 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Lab_Office_L, mt.MKT_Lab_Office, Sheet + "Lab/Office 必選");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Attributes_1_L, mt.MKT_Material_Attributes_1, Sheet + "Material Attributes 1 必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Attributes_2_L, mt.MKT_Material_Attributes_2, Sheet + "Material Attributes 2 必填");
                        //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Attributes_3_L, mt.MKT_Material_Attributes_3, Sheet + "Material Attributes 3 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Item_category_group_L, mt.MKT_Item_category_group, Sheet + "Item category group 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.) 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZF_L, mt.MKT_Description_ZF, Sheet + "Description 3 (ZF.) 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Group_4_L, mt.MKT_Material_Group_4, Sheet + "Material group 4 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Hierarchy_L, mt.MKT_Product_Hierarchy, Sheet + "Product Hierarchy 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Profit_Center_L, mt.MKT_Profit_Center, Sheet + "Profit Center 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Marterial_Group_L, mt.MKT_Marterial_Group, Sheet + "Material Group 爲必填");
                        if (!string.IsNullOrEmpty(mt.MKT_Length))
                        {
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Length_L, mt.MKT_Length, Sheet + "Lenth不超過三位小數");
                        }
                        if (!string.IsNullOrEmpty(mt.MKT_Width))
                        {
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Width_L, mt.MKT_Width, Sheet + "Width不超過三位小數");
                        }
                        if (!string.IsNullOrEmpty(mt.MKT_Height))
                        {
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Height_L, mt.MKT_Height, Sheet + "Height不超過三位小數");
                        }
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Length_L, mt.MKT_Length, Sheet + "Lenth 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Width_L, mt.MKT_Width, Sheet + "Width 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Height_L, mt.MKT_Height, Sheet + "Height 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Unit_of_Dimension_L, mt.MKT_Unit_of_Dimension, Sheet + "Unit of Dimension 必填");
                        if (!string.IsNullOrEmpty(mt.MKT_Gross_Weight))
                        {
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Gross_Weight_L, mt.MKT_Gross_Weight, Sheet + "Gross Weight不超過三位小數");
                        }
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Gross_Weight_L, mt.MKT_Gross_Weight, Sheet + "Gross Weight 必填");
                        if (!string.IsNullOrEmpty(mt.MKT_Net_Weight))
                        {
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Net_Weight_L, mt.MKT_Net_Weight, Sheet + "Net Weight不超過三位小數");
                        }
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Net_Weight_L, mt.MKT_Net_Weight, Sheet + "Net Weight 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Group_L, mt.MKT_Product_Group, Sheet + "Product Group 爲必填");

                        vald_s.AddRange(Validation(regs));
                        return vald_s;

                    }
                    else if (FORM == "FORM-T010")
                    {
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Distr_Channel_L, mt.MKT_Distr_Channel, Sheet + "Distr. Channel 必選");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_FINI_Code_L, mt.MKT_FINI_Code, Sheet + "FINI Code 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.) 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZF_L, mt.MKT_Description_ZF, Sheet + "Description 2 (ZF.) 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Gross_Weight_L, mt.MKT_Gross_Weight, Sheet + "Gross Weight 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Net_Weight_L, mt.MKT_Net_Weight, Sheet + "Net Weight 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Lab_Office_L, mt.MKT_Lab_Office, Sheet + "Lab/Office 必選");
                        if (!string.IsNullOrEmpty(mt.MKT_Volume))
                        {
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Volume_L, mt.MKT_Volume, Sheet + "Volume不超過三位小數");
                        }
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Volume_L, mt.MKT_Volume, Sheet + "Volume 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Group_L, mt.MKT_Product_Group, Sheet + "Product Group 必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Group_4_L, mt.MKT_Material_Group_4, Sheet + "Material group 4 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Profit_Center_L, mt.MKT_Profit_Center, Sheet + "Profit Center 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Unit_Of_Measure_X_L, mt.MKT_Unit_Of_Measure_X, Sheet + "Denominator第一行 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Unit_Of_Measure_X_L, mt.MKT_Unit_Of_Measure_X_1, Sheet + "Denominator第二行 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Unit_Of_Measure_X_L, mt.MKT_Unit_Of_Measure_X_2, Sheet + "Denominator第三行 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Unit_Of_Measure_Y_L, mt.MKT_Unit_Of_Measure_Y, Sheet + "Numerator第一行 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Unit_Of_Measure_Y_L, mt.MKT_Unit_Of_Measure_Y_1, Sheet + "Numerator第二行 爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Unit_Of_Measure_Y_L, mt.MKT_Unit_Of_Measure_Y_2, Sheet + "Numerator第三行 爲必填");
                        if (!string.IsNullOrEmpty(mt.MKT_Net_Weight))
                        {
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Net_Weight_L, mt.MKT_Net_Weight, Sheet + "Net Weight不超過三位小數");
                        }
                        if (!string.IsNullOrEmpty(mt.MKT_Gross_Weight))
                        {
                            akzo_RegularCheck(ref regs, RegularExp.Digit3, MKT_Gross_Weight_L, mt.MKT_Gross_Weight, Sheet + "Gross Weight不超過三位小數");
                        }
                        vald_s.AddRange(Validation(regs));
                        return vald_s;

                    }
                    //else
                    //{
                    //    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_SKU_BPCS_Code_L, mt.MKT_SKU_BPCS_Code, Sheet + "SKU BPCS Code为必填");

                    //}
                    else if (FORM == "FORM-005")
                    {

                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_FINI_Code_L, mt.MKT_FINI_Code, Sheet + "Fini code为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Sales_Org_L, mt.MKT_Sales_Org, Sheet + "Sales Org.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Distr_Channel_L, mt.MKT_Distr_Channel, Sheet + "Distr.Channel为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Volume_Rebate_Group_L, mt.MKT_Volume_Rebate_Group, Sheet + "Volume rebate group为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Group_4_L, mt.MKT_Material_Group_4, Sheet + "Material group 4为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Hierarchy_L, mt.MKT_Product_Hierarchy, Sheet + "Product Hierarchy为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Profit_Center_L, mt.MKT_Profit_Center, Sheet + "Profit Center (Channel)为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Line_Code_L, mt.MKT_Product_Line_Code, Sheet + "Product Line Code为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.)为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZH_L, mt.MKT_Description_ZH, Sheet + "Description 2 (ZH.)为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZF_L, mt.MKT_Description_ZF, Sheet + "Description 3 (ZF.)为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Size_dimension_L, mt.MKT_Size_dimension, Sheet + "Size/dimension为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Is_Generic_L, mt.MKT_Is_Generic, Sheet + "是否需要調色为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_1, mt.MKT_Description_EN_1, Sheet + "包装产品容积(4bit) EN.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_2, mt.MKT_Description_EN_2, Sheet + "包装中英文描述(24bit) EN.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_2, mt.MKT_Description_ZH_2, Sheet + "包装中英文描述(24bit) ZH.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_3, mt.MKT_Description_EN_3, Sheet + "包装类型I EN.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_3, mt.MKT_Description_ZH_3, Sheet + "包装类型I ZH.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_4, mt.MKT_Description_EN_4, Sheet + "包装类型II(12bit) EN.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_4, mt.MKT_Description_ZH_4, Sheet + "包装类型II(12bit) ZH.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Lab_Office_L, mt.MKT_Lab_Office, Sheet + "Lab/Office为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_IsSale_L, mt.MKT_IsSale, Sheet + "是否需要工厂调色及售卖?为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Group_L, mt.MKT_Product_Group, Sheet + "Product Group为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Min_dely_qty_L, mt.MKT_Min_dely_qty, Sheet + "Min. dely qty 为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Min_order_qty_L, mt.MKT_Min_order_qty, Sheet + "Min.order qty 为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Delivery_unit_L, mt.MKT_Delivery_unit, Sheet + "Delivery unit 为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Delivering_plant_L, mt.MKT_Delivering_plant, Sheet + "Delivering Plant 为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Order_unit_L, mt.MKT_Order_unit, Sheet + "Order Unit 为必填");
                        vald_s.AddRange(Validation(regs));
                        return vald_s;

                    }
                    else if (FORM == "FORM-T018" && (Page as PMDC).rd_Raw_Code.SelectedValue == "1")
                    {
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_A_Coat_L, mt.MKT_A_Coat, Sheet + "A Coat爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Type_L, mt.MKT_Type, Sheet + "Type爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Distr_Channel_L, mt.MKT_Distr_Channel, Sheet + "Distr.Channel爲必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Easy_Order_Entry_Code_L, mt.MKT_Easy_Order_Entry_Code, Sheet + "Easy Order entry number爲必填");
                        //return vald_s;

                    }
                    if (FORM == "FORM-031-1" || FORM == "FORM-031-2")
                    {
                        if ((Page as PMDC).Code_Selected.Checked)
                        {
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_FINI_Code_L, mt.MKT_FINI_Code, Sheet + "Fini code为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Line_Code_L, mt.MKT_Product_Line_Code, Sheet + "Product Line Code为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.)为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZH_L, mt.MKT_Description_ZH, Sheet + "Description 2 (ZH.)为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Size_dimension_L, mt.MKT_Size_dimension, Sheet + "Size/dimension为必填");
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Group_L, mt.MKT_Product_Group, Sheet + "Product Group为必填");
                        }
                        else
                        {
                            return vald_s;
                        }
                    }
                    else //if (TaskAPI.Process != "TW Raw Code Application")
                    {
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_FINI_Code_L, mt.MKT_FINI_Code, Sheet + "Fini code为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Sales_Org_L, mt.MKT_Sales_Org, Sheet + "Sales Org.为必填");
                        if (MKT_Distr_Channel_L.Visible && FORM != "FORM-T018")
                        {
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Distr_Channel_L, mt.MKT_Distr_Channel, Sheet + "Distr.Channel为必填");
                        }
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Volume_Rebate_Group_L, mt.MKT_Volume_Rebate_Group, Sheet + "Volume rebate group为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Material_Group_4_L, mt.MKT_Material_Group_4, Sheet + "Material group 4为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Hierarchy_L, mt.MKT_Product_Hierarchy, Sheet + "Product Hierarchy为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Profit_Center_L, mt.MKT_Profit_Center, Sheet + "Profit Center (Channel)为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Line_Code_L, mt.MKT_Product_Line_Code, Sheet + "Product Line Code为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.)为必填");
                        if (FORM.IndexOf("T") != -1)
                        {
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZH_L, mt.MKT_Description_ZH, Sheet + "Description 2 (ZF.)为必填");
                        }
                        else
                        {
                            akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZH_L, mt.MKT_Description_ZH, Sheet + "Description 2 (ZH.)为必填");
                        }
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZF_L, mt.MKT_Description_ZF, Sheet + "Description 3 (ZF.)为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Size_dimension_L, mt.MKT_Size_dimension, Sheet + "Size/dimension为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Is_Generic_L, mt.MKT_Is_Generic, Sheet + "是否需要調色为必填");

                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_1, mt.MKT_Description_EN_1, Sheet + "包装产品容积(4bit) EN.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_1, mt.MKT_Description_ZH_1, Sheet + "包装产品容积(4bit) ZH.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_2, mt.MKT_Description_EN_2, Sheet + "包装中英文描述(24bit) EN.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_2, mt.MKT_Description_ZH_2, Sheet + "包装中英文描述(24bit) ZH.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_3, mt.MKT_Description_EN_3, Sheet + "包装类型I EN.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_3, mt.MKT_Description_ZH_3, Sheet + "包装类型I ZH.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_4, mt.MKT_Description_EN_4, Sheet + "包装类型II(12bit) EN.为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L_4, mt.MKT_Description_ZH_4, Sheet + "包装类型II(12bit) ZH.为必填");

                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Lab_Office_L, mt.MKT_Lab_Office, Sheet + "Lab/Office为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_IsSale_L, mt.MKT_IsSale, Sheet + "是否需要工厂调色及售卖?为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Product_Group_L, mt.MKT_Product_Group, Sheet + "Product Group为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Min_dely_qty_L, mt.MKT_Min_dely_qty, Sheet + "Min. dely qty 为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Min_order_qty_L, mt.MKT_Min_order_qty, Sheet + "Min.order qty 为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Delivery_unit_L, mt.MKT_Delivery_unit, Sheet + "Delivery unit 为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Delivering_plant_L, mt.MKT_Delivering_plant, Sheet + "Delivering Plant 为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Order_unit_L, mt.MKT_Order_unit, Sheet + "Order Unit 为必填");
                        akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_SKU_BPCS_Code_L, mt.MKT_SKU_BPCS_Code, Sheet + "SKU BPCS Code为必填");
                    }

                    //if (FORM == "FORM-014")
                    //{
                    //    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_SKU_BPCS_Code_L, mt.MKT_SKU_BPCS_Code, Sheet + "ADVE Code 为必填");
                    //    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_EN_L, mt.MKT_Description_EN, Sheet + "Description 1 (EN.)为必填");
                    //    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Description_ZH_L, mt.MKT_Description_ZH, Sheet + "Description 2 (ZH.)为必填");
                    //    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Base_Unit_Of_Measure_L, mt.MKT_Base_Unit_Of_Measure, Sheet + "Base Unit Of Measure为必填");
                    //    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Min_dely_qty_L, mt.MKT_Min_dely_qty, Sheet + "Min. dely qty 为必填");
                    //    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Min_order_qty_L, mt.MKT_Min_order_qty, Sheet + "Min.order qty 为必填");
                    //    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Delivery_unit_L, mt.MKT_Delivery_unit, Sheet + "Delivery unit 为必填");
                    //    akzo_RegularCheck(ref regs, RegularExp.NotEmpty, MKT_Profit_Center_L, mt.MKT_Profit_Center, Sheet + "Profit Center (Channel)为必填");
                    //}
                    break;
            }

            vald_s.AddRange(Validation(regs));

            if (MKT_Description_ZH_1.Visible && MKT_Description_ZH_1.Enabled && Util.TextLength(mt.MKT_Description_ZH_1 == null ? "" : mt.MKT_Description_ZH_1) > 4)
            {
                vald_s.Add(Sheet + "包装产品容积(4bit)长度大于4个字符(中文占 2 个字符)");
            }

            if (MKT_Description_ZH_2.Visible && MKT_Description_ZH_2.Enabled && Util.TextLength(mt.MKT_Description_ZH_2 == null ? "" : mt.MKT_Description_ZH_2) > 24)
            {
                vald_s.Add(Sheet + "包装中英文描述(24bit)长度大于24个字符(中文占 2 个字符)");
            }

            return vald_s;
        }
        #endregion

        #region SKU BPCS Code
        protected void MKT_SKU_BPCS_Code_TextChanged(object sender, EventArgs e)
        {
            //if (TaskAPI.Process == "TW MTO Application-DECO" || TaskAPI.Process == "TW MTO Application-PKG")
            //{
            //    MKT_FINI_Code.Text = MKT_SKU_BPCS_Code.Text + "-" + MKT_Color_Code.Text + " " + MKT_Pack_Size.Text;
            //    if (FORM == "FORM-T006" && TaskAPI.Process == "TW MTO Application-DECO")
            //    {
            //        PMDC pcmd = (Page as PMDC);
            //        if (pcmd != null)
            //        {
            //            m_TW_MTO_Template te = (m_TW_MTO_Template.z_Product_Cluster == pcmd.TabMaterial1.Marketing1.MKT_SKU_BPCS_Code.Text).ListFirst<m_TW_MTO_Template>();
            //            if (te != null)
            //            {
            //                MKT_Description_EN.Text = te.Description_EN;
            //                MKT_Description_ZF.Text = te.Description_ZF;
            //                MKT_Marterial_Group.Text = te.Material_Group;
            //                MKT_Lab_Office.SelectedValue = te.Lab_office;
            //                MKT_Product_Group.Text = te.Product_group;
            //                MKT_Material_Group_4.SelectedValue = te.Material_group_4;
            //                MKT_Product_Hierarchy.Text = te.Product_Hierarchy;
            //                MKT_Profit_Center.SelectedValue = te.Profit_Centre;
            //                MKT_Material_Attributes_1.Text = te.Material_Attributes_1;
            //                MKT_Gross_Weight.Text = te.Gross_Weight;
            //                MKT_Net_Weight.Text = te.Net_Weight;
            //                MKT_Length.Text = te.Length;
            //                MKT_Width.Text = te.Width;
            //                MKT_Height.Text = te.Height;
            //            }
            //        }
            //    }

            //}
            MKT_Easy_Order_Entry_Code.Text = MKT_SKU_BPCS_Code.Text;
            MKT_Easy_Order_Entry.Text = MKT_SKU_BPCS_Code.Text;
            (Page as PMDC).TabMaterial1.CA1.CA_Easy_Order_Entry.Text = MKT_SKU_BPCS_Code.Text;
        }
        #endregion

        #region FINI Code 赋值功能
        protected void MKT_FINI_Code_TextChanged(object sender, EventArgs e)
        {
            if (TaskAPI.Process == "TW MTO Application-DECO" && FORM == "FORM-T006")
            {
                if (MKT_Product_Cluster.Text.Contains("F") || MKT_Product_Cluster.Text.Contains("N") || MKT_Product_Cluster.Text.Contains("K") || MKT_Product_Cluster.Text.Contains("P"))
                {
                    MKT_FINI_Code.Text = MKT_Product_Cluster.Text + MKT_Color_Code.Text + MKT_Pack_Size.Text;
                }
                else
                {
                    MKT_FINI_Code.Text = MKT_Product_Cluster.Text + "-" + MKT_Color_Code.Text + MKT_Pack_Size.Text;
                }
            }
            MKT_Easy_Order_Entry_Code.Text = MKT_FINI_Code.Text;
            MKT_Easy_Order_Entry.Text = MKT_FINI_Code.Text;
        }
        #endregion

        #region Min dely qty 赋值功能
        protected void MKT_Min_dely_qty_TextChanged(object sender, EventArgs e)
        {
            if (TaskAPI.Process != "TW MTO Application-DECO" && TaskAPI.Process != "TW MTO Application-PKG")
            {
                MKT_Min_order_qty.Text = MKT_Min_dely_qty.Text;
                MKT_Delivery_unit.Text = MKT_Min_dely_qty.Text;
            }

        }
        #endregion

        #region Gross Weight 默认赋值功能
        protected void MKT_Gross_Weight_TextChanged(object sender, EventArgs e)
        {
            if (FORM == "FORM-T001")
            {
                double gross = 0.0;
                double.TryParse(MKT_Gross_Weight.Text, out gross);
                (Page as PMDC).TabMaterial1.Logistics1.LOG_Unit_Of_Measure_X_D_1.Text = (1000 * gross).ToString();
                //(Page as PMDC).TabMaterial1.Logistics1.LOG_Net_Weight.Text = MKT_Gross_Weight.Text;
                this.MKT_Net_Weight.Text = MKT_Gross_Weight.Text;

            }
            if (FORM == "FORM-T009" || FORM == "FORM-T006")
            {
                double gross = 0.0;
                double.TryParse(MKT_Gross_Weight.Text, out gross);
                (Page as PMDC).TabMaterial1.Logistics1.LOG_Unit_Of_Measure_X_D_1.Text = (1000 * gross).ToString();
            }
        }
        #endregion

        #region Net Weight 默认赋值功能
        protected void MKT_Net_Weight_TextChanged(object sender, EventArgs e)
        {
            if (FORM == "FORM-T006" && TaskAPI.Process == "TW MTO Application-DECO")
            {
                double gross = 0.0;
                double.TryParse(MKT_Net_Weight.Text, out gross);
                (Page as PMDC).TabMaterial1.Logistics1.LOG_Unit_Of_Measure_X_D_1.Text = (1000 * gross).ToString();

            }
            if (FORM == "FORM-TW-007")
            {
                double gross = 0.0;
                double.TryParse(this.MKT_Net_Weight.Text, out gross);
                MKT_Denominator_1.Text = (1000 * gross).ToString();
            }

            #region
            if (TaskAPI.Process == "TW MTO Application-PKG" && FORM == "FORM-T010")
            {
                double gross = 0.0;
                double.TryParse(this.MKT_Net_Weight.Text, out gross);
                MKT_Unit_Of_Measure_X_2.Text = gross.ToString();
            }
            if (TaskAPI.Process == "TW NPL Application-PKG" && FORM == "FORM-TW-010")
            {
                double gross = 0.0;
                double.TryParse(this.MKT_Net_Weight.Text, out gross);
                MKT_Unit_Of_Measure_X_2.Text = gross.ToString();
            }
            if (TaskAPI.Process == "TW NPL Application-DECO" && FORM == "FORM-TW-007")
            {
                double gross = 0.0;
                double.TryParse(MKT_Net_Weight.Text, out gross);
                MKT_Unit_Of_Measure_X.Text = gross.ToString();
            }
            if (TaskAPI.Process == "TW FINI Code Application")
            {
                if (FORM == "FORM-TW-007")
                {
                    double gross = 0.0;
                    double.TryParse(MKT_Net_Weight.Text, out gross);
                    MKT_Unit_Of_Measure_X.Text = (1000 * gross).ToString();
                }
                if (FORM == "FORM-TW-010")
                {
                    double gross = 0.0;
                    double.TryParse(MKT_Net_Weight.Text, out gross);
                    MKT_Unit_Of_Measure_X.Text = (1000 * gross).ToString();
                    MKT_Unit_Of_Measure_X_2.Text = (1000 * gross).ToString();
                }

            }

            #endregion

        }
        #endregion

        #region Volume 默认赋值功能
        protected void MKT_Volume_TextChanged(object sender, EventArgs e)
        {
            if (FORM == "FORM-TW-007")
            {
                double gross = 0.0;
                double.TryParse(MKT_Volume.Text, out gross);
                MKT_Denominator_2.Text = (1000 * gross).ToString();
            }
            //Tang Bin 添加
            #region
            if (TaskAPI.Process == "TW MTO Application-DECO" && FORM == "FORM-T006")
            {
                double gross = 0.0;
                double.TryParse(MKT_Volume.Text, out gross);
                (Page as PMDC).TabMaterial1.Logistics1.LOG_Unit_Of_Measure_X_D_2.Text = (1000 * gross).ToString();
                (Page as PMDC).TabMaterial1.Logistics1.LOG_Unit_Of_Measure_X_D_3.Text = (1000 * gross).ToString();
            }
            if (TaskAPI.Process == "TW NPL Application-DECO" && FORM == "FORM-TW-007")
            {
                double gross = 0.0;
                double.TryParse(MKT_Volume.Text, out gross);
                MKT_Unit_Of_Measure_X_1.Text = (1000 * gross).ToString();
                MKT_Unit_Of_Measure_X_2.Text = (1000 * gross).ToString();
            }
            if (TaskAPI.Process == "TW FINI Code Application")
            {
                if (FORM == "FORM-TW-007")
                {
                    double gross = 0.0;
                    double.TryParse(MKT_Volume.Text, out gross);
                    MKT_Unit_Of_Measure_X_1.Text = (1000 * gross).ToString();
                    MKT_Unit_Of_Measure_X_2.Text = (1000 * gross).ToString();
                }
                if (FORM == "FORM-TW-010")
                {
                    double gross = 0.0;
                    double.TryParse(MKT_Volume.Text, out gross);
                    MKT_Unit_Of_Measure_X_1.Text = (1000 * gross).ToString();
                }
            }
            #endregion
        }
        #endregion

        #region Color Code 默认赋值功能
        protected void MKT_Color_Code_TextChanged(object sender, EventArgs e)
        {
            if (TaskAPI.Process == "TW MTO Application-DECO" && FORM == "FORM-T006")
            {
                string s = MKT_Color_Code.Text + MKT_Product_Cluster.Text + MKT_Pack_Size.Text;
                if (!string.IsNullOrEmpty(s))
                {
                    if (MKT_Product_Cluster.Text.Contains("F") || MKT_Product_Cluster.Text.Contains("N") || MKT_Product_Cluster.Text.Contains("K") || MKT_Product_Cluster.Text.Contains("P"))
                    {
                        MKT_FINI_Code.Text = MKT_Product_Cluster.Text + MKT_Color_Code.Text + MKT_Pack_Size.Text;
                    }
                    else
                    {
                        MKT_FINI_Code.Text = MKT_Product_Cluster.Text + "-" + MKT_Color_Code.Text + MKT_Pack_Size.Text;
                    }
                }
                else
                {
                    MKT_FINI_Code.Text = "";
                }

                MKT_Easy_Order_Entry_Code.Text = MKT_FINI_Code.Text;
                MKT_Easy_Order_Entry.Text = MKT_Product_Cluster.Text + "-" + MKT_Color_Code.Text + " " + MKT_Pack_Size.Text;
            }

        }
        #endregion

        #region PACK SIZE 默认赋值功能
        protected void MKT_Pack_Size_TextChanged(object sender, EventArgs e)
        {
            if (TaskAPI.Process == "TW MTO Application-DECO" && FORM == "FORM-T006")
            {
                string s = MKT_Color_Code.Text + MKT_Product_Cluster.Text + MKT_Pack_Size.Text;
                if (!string.IsNullOrEmpty(s))
                {
                    if (MKT_Product_Cluster.Text.Contains("F") || MKT_Product_Cluster.Text.Contains("N") || MKT_Product_Cluster.Text.Contains("K") || MKT_Product_Cluster.Text.Contains("P"))
                    {
                        MKT_FINI_Code.Text = MKT_Product_Cluster.Text + MKT_Color_Code.Text + MKT_Pack_Size.Text;
                    }
                    else
                    {
                        MKT_FINI_Code.Text = MKT_Product_Cluster.Text + "-" + MKT_Color_Code.Text + MKT_Pack_Size.Text;
                    }
                }
                else
                {
                    MKT_FINI_Code.Text = "";
                }
                //MKT_Volume.Text = MKT_Pack_Size.Text;
                // MKT_Easy_Order_Entry_Code.Text = MKT_Product_Cluster.Text + "-" + MKT_Color_Code.Text + " " + MKT_Pack_Size.Text + "L";
                MKT_Easy_Order_Entry.Text = MKT_Product_Cluster.Text + "-" + MKT_Color_Code.Text + " " + MKT_Pack_Size.Text;

                if (FORM == "FORM-T006")
                {
                    double gross = 0.0;
                    double.TryParse(MKT_Pack_Size.Text, out gross);
                    (Page as PMDC).TabMaterial1.Logistics1.LOG_Unit_Of_Measure_X_D_2.Text = (1000 * gross).ToString();
                }

            }
        }
        #endregion

        #region Z_Product Cluster 默认赋值功能
        protected void MKT_Product_Cluster_TextChanged(object sender, EventArgs e)
        {
            if (TaskAPI.Process == "TW MTO Application-DECO" && FORM == "FORM-T006")
            {
                string s = MKT_Color_Code.Text + MKT_Product_Cluster.Text + MKT_Pack_Size.Text;
                if (!string.IsNullOrEmpty(s))
                {
                    if (MKT_Product_Cluster.Text.Contains("F") || MKT_Product_Cluster.Text.Contains("N") || MKT_Product_Cluster.Text.Contains("K") || MKT_Product_Cluster.Text.Contains("P"))
                    {
                        MKT_FINI_Code.Text = MKT_Product_Cluster.Text + MKT_Color_Code.Text + MKT_Pack_Size.Text;
                    }
                    else
                    {
                        MKT_FINI_Code.Text = MKT_Product_Cluster.Text + "-" + MKT_Color_Code.Text + MKT_Pack_Size.Text;
                    }
                }
                else
                {
                    MKT_FINI_Code.Text = "";
                }
                PMDC pcmd = (Page as PMDC);
                if (pcmd != null)
                {
                    m_TW_MTO_Template te = (m_TW_MTO_Template.z_Product_Cluster == pcmd.TabMaterial1.Marketing1.MKT_Product_Cluster.Text).ListFirst<m_TW_MTO_Template>();
                    if (te != null)
                    {
                        MKT_Description_EN.Text = te.Description_EN;
                        MKT_Description_ZF.Text = te.Description_ZF;
                        MKT_Marterial_Group.Text = te.Material_Group;
                        MKT_Lab_Office.SelectedValue = te.Lab_office;
                        MKT_Product_Group.Text = te.Product_group;
                        MKT_Material_Group_4.SelectedValue = te.Material_group_4;
                        MKT_Product_Hierarchy.Text = te.Product_Hierarchy;
                        //MKT_Profit_Center.SelectedValue = te.Profit_Centre;
                        MKT_Material_Attributes_1.Text = te.Material_Attributes_1;
                        MKT_Gross_Weight.Text = te.Gross_Weight;
                        MKT_Net_Weight.Text = te.Net_Weight;
                        MKT_Length.Text = te.Length;
                        MKT_Width.Text = te.Width;
                        MKT_Height.Text = te.Height;
                        MKT_Pack_Size.Text = te.Pack_Size;
                        MKT_Volume.Text = te.Volume;
                    }
                }
            }
            if (TaskAPI.Process == "TW MTO Application-DECO" && FORM == "FORM-T006")
            {
                double gross = 0.0;
                double.TryParse(MKT_Net_Weight.Text, out gross);
                double grosss = 0.0;
                double.TryParse(MKT_Volume.Text, out grosss);
                (Page as PMDC).TabMaterial1.Logistics1.LOG_Unit_Of_Measure_X_D_1.Text = (1000 * gross).ToString();
                (Page as PMDC).TabMaterial1.Logistics1.LOG_Unit_Of_Measure_X_D_2.Text = (1000 * grosss).ToString();
                (Page as PMDC).TabMaterial1.Logistics1.LOG_Unit_Of_Measure_X_D_3.Text = (1000 * grosss).ToString();
                string t = MKT_Pack_Size.Text;
                if (t == "G5" | t == "L18")
                {
                    (Page as PMDC).TabMaterial1.Logistics1.LOG_LE_quantity1.Text = "45";
                    (Page as PMDC).TabMaterial1.Logistics1.LOG_SUT1.Text = "P1";
                }
                else if (t == "G1" | t == "L3.5" | t == "L2.5")
                {
                    (Page as PMDC).TabMaterial1.Logistics1.LOG_LE_quantity1.Text = "180";
                    (Page as PMDC).TabMaterial1.Logistics1.LOG_SUT1.Text = "P1";
                }
                else if (t == "L1")
                {
                    (Page as PMDC).TabMaterial1.Logistics1.LOG_LE_quantity1.Text = "576";
                    (Page as PMDC).TabMaterial1.Logistics1.LOG_SUT1.Text = "P1";
                }
                else if (t == "L10")
                {
                    (Page as PMDC).TabMaterial1.Logistics1.LOG_LE_quantity1.Text = "48";
                    (Page as PMDC).TabMaterial1.Logistics1.LOG_SUT1.Text = "P1";
                }
                else if (t == "L5")
                {
                    (Page as PMDC).TabMaterial1.Logistics1.LOG_LE_quantity1.Text = "120";
                    (Page as PMDC).TabMaterial1.Logistics1.LOG_SUT1.Text = "P1";
                }
            }
        }
        #endregion

        #region EAN/UPC
        protected void MKT_EAN_UPC_TextChanged(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(MKT_EAN_UPC.Text))
            {
                SetForeColor(Color.Orange, MKT_EAN_Category_L);
                MKT_EAN_Category.Text = "K0";
                SetEnable(false, MKT_EAN_Category);

            }
            else
            {
                SetForeColor(Color.Black, MKT_EAN_Category_L);
                SetEnable(true, MKT_EAN_Category);
                MKT_EAN_Category.Text = "";
            }
        }
        #endregion
    }
}
